Skip to content

Commit

Permalink
fix ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
nett00n committed Mar 26, 2024
1 parent e2656af commit e5255ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ services:
- cache:/cache:ro
cron:
image: busybox:stable
environment:
- FILE_TTL=${FILE_TTL:-3} #days
volumes:
- cache:/cache
command: sh -c "find /cache/ -type f -amin +1440 -delete > /dev/null; find /cache/ -type d -empty -delete > /dev/null; sleep 60m"
command: sh -c "find /cache/ -type f -atime +${FILE_TTL} -delete > /dev/null; find /cache/ -type d -empty -delete > /dev/null; sleep 60m"
labels:
com.centurylinklabs.watchtower.enable: "true"
logging:
Expand Down

0 comments on commit e5255ab

Please sign in to comment.