i want to do a regular cleanup of sentry and somehow can’t find a clean way to do this.
we run docker on-premise with the default docker-compose.yml. i know, i can run cleanup like this: docker-compose run --rm worker cleanup --days 120
and trigger that by cron.
the problem is: every time i do this, docker starts the containers for postgres/redis/… too. i dont think its a good idea to run those twice with the same volumes mounted.
i could stop sentry, run the cleanup and start sentry up again, but somehow that feels very wrong and would result in downtime every time i run cleanup.
is there a nicer/cleaner solution i cant see?
thx,
bernhard