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:
parent
b2deb042e8
commit
686c926a30
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue