openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
GNU Affero General Public License v3.0
633 stars 372 forks source link

Configure Apache log rotation in docker deployment scenario #5970

Open alexgarel opened 2 years ago

alexgarel commented 2 years ago

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

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 90 days with no activity.