Skip to content

Commit

Permalink
feat: vroom cleanup script that respects default retention days (#2211)
Browse files Browse the repository at this point in the history
* feat: vroom cleanup script that respects default retention days

* fix: remove gosu, it doesn't exists

* ref: change base image to vroom
  • Loading branch information
aldy505 committed Jul 20, 2023
1 parent 6325abf commit a76cb0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,22 @@ services:
depends_on:
kafka:
<<: *depends_on-healthy
vroom-cleanup:
<<: *restart_policy
image: vroom-cleanup-self-hosted-local
build:
context: ./cron
args:
BASE_IMAGE: "$VROOM_IMAGE"
entrypoint: "/entrypoint.sh"
environment:
# Leaving the value empty to just pass whatever is set
# on the host system (or in the .env file)
SENTRY_EVENT_RETENTION_DAYS:
command: '"0 0 * * * find /var/lib/sentry-profiles -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
volumes:
- sentry-vroom:/var/lib/sentry-profiles

volumes:
# These store application data that should persist across restarts.
sentry-data:
Expand Down

0 comments on commit a76cb0d

Please sign in to comment.