1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 16:36:06 +00:00

build(docker): the image is Ubuntu 26.04 with supervisord in place of phusion's runit

phusion/baseimage brought sshd, syslog-ng, my_init and runit's per
service scripts, and an nginx log forwarder tailing a file. The image
is now ubuntu:26.04 with Ubuntu's supervisor: conf/docker holds the
start script (settings, secret key, ownership, migrations as www-data),
one supervisord.conf for the six processes, nginx's config with errors
to docker logs, the backup's cron line and the health check. A stop
signals every process at once, so the worker keeps its 60 s drain
within the 95 s grace. The same volumes and container name work as
before; README runs commands with exec -u www-data in place of
/sbin/setuser. The image goes from 805 MB to 642 MB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
catborise 2026-11-08 16:01:38 +03:00
parent b03828c684
commit 80a66dc8b5
21 changed files with 218 additions and 203 deletions

View file

@ -6,7 +6,7 @@ services:
image: webvirtcloud:latest
container_name: webvirtcloud
restart: unless-stopped
# above my_init's 80 s, which is above the worker's 60 s drain
# above supervisord's 80 s for the worker, which drains its jobs for 60 s
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: