You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Solution to back up content and media folders to offline storage
57
58
59
+
## Production log limits
60
+
61
+
Production is configured so container and application logs do not fill disk.
62
+
63
+
**Docker container logs** (stdout/stderr, i.e. `docker logs`) are limited by the logging driver:
64
+
65
+
-**docker-compose.prod.yml** and **deploy-prod.sh** use the `json-file` driver with `max-size: 10m` and `max-file: 3` for both the webserver and certbot containers. Docker keeps at most three 10 MB log files per container.
66
+
67
+
**Application log files** (Apache, PHP, Certbot) in `apache-logs/`, `php-logs/`, and `letsencrypt-logs/` are rotated on the **prod server** using logrotate:
68
+
69
+
- The config is in **logrotate.prod.conf** (rotate after 10M, keep 5 rotated files, compress, safe for open files).
70
+
- On the prod server, install it once from the repo root:
- If the app is not in `/home/nmcdev/nmc-website`, edit the paths at the top of `logrotate.prod.conf`. Logrotate runs via cron (typically daily); no container restart needed.
73
+
58
74
## Further Reading
59
75
60
76
1.[Git large file storage info](https://docs.github.com/en/repositories/working-with-files/managing-large-files/collaboration-with-git-large-file-storage)
0 commit comments