Configure Apache log rotation in docker deployment scenario #5970
Labels
🪶 Apache
We use Apache as a server to run Open Food Facts
infrastructure
https://wiki.openfoodfacts.org/Infrastructure
logs
⏰ Stale
This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Is your feature request related to a problem? Please describe.
We do not configure Apache log rotation with docker deployment, it can leads to potential problems at a moment in the future.
Describe the solution you'd like
It seems the best for now could be setting up logrotate system wide (ensure it in deploy script ?), as system logrotate has access to volume containing log and can sens signal to apache process running say
docker-compose exec -T backend killall -s SIGHUP apache2
).Describe alternatives you've considered
Normally we should send all logs to docker log handling and harvest them in a log facility… but that's for later on.
I didn't see any way Apache can auto-rotate logs by itself, see https://httpd.apache.org/docs/2.4/logs.html#rotation
Additional context
No response
Number of products impacted
No response
Time per product
No response
The text was updated successfully, but these errors were encountered: