1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 03:36:48 +00:00

chore(docker): the container's log is rotated

gunicorn writes a line of its access log for every request to the
container's output, and Docker's json-file log driver keeps all of it
by default: an open VM list alone adds a line every 5 seconds until the
disk is full. The compose file now keeps 5 files of 10 MB, as the
panel's own log.
This commit is contained in:
catborise 2026-11-05 09:41:10 +03:00
parent b2deb042e8
commit 686c926a30

View file

@ -8,6 +8,12 @@ services:
restart: unless-stopped
# above my_init's 80 s, which is above the worker's 60 s drain
stop_grace_period: 95s
# every request is a line of gunicorn's access log: kept to 5 files of 10 MB, as the panel's own log
logging:
driver: json-file
options:
max-size: 10m
max-file: "5"
ports:
- "80:80"
environment: