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:
parent
b03828c684
commit
80a66dc8b5
21 changed files with 218 additions and 203 deletions
|
|
@ -13,7 +13,7 @@ WebVirtCloud is a web panel for libvirt hosts. libvirt is the source of truth: t
|
|||
| Frontend | Django templates, Bootstrap 5, Bootstrap Icons, vendored jQuery, Chart.js, noVNC, xterm.js |
|
||||
| Security | `django-otp` (TOTP), `django-axes` (lockout), optional `django-auth-ldap`; CSP `script-src 'self'` |
|
||||
| Serving | nginx in front of gunicorn (gthread workers) and WhiteNoise |
|
||||
| Processes | systemd units on hosts, runit in the Docker image |
|
||||
| Processes | systemd units on hosts, supervisord in the Docker image |
|
||||
|
||||
## Processes
|
||||
|
||||
|
|
@ -31,12 +31,12 @@ Django, worker, novncd, socketiod ── libvirt (TCP, SSH, TLS or local socket)
|
|||
panel ── gstfsd on each compute, at the compute's hostname, port 16510 (HMAC-signed requests; loopback only when the panel runs on the compute)
|
||||
```
|
||||
|
||||
| Unit (systemd) | runit service (Docker) | Runs |
|
||||
| Unit (systemd) | supervisord program (Docker) | Runs |
|
||||
|---|---|---|
|
||||
| `webvirt-cloud` | `webvirtcloud` | gunicorn |
|
||||
| `webvirt-novncd` | `novnc` | `console/novncd` |
|
||||
| `webvirt-cloud` | `gunicorn` | gunicorn |
|
||||
| `webvirt-novncd` | `novncd` | `console/novncd` |
|
||||
| `webvirt-socketiod` | `socketiod` | `console/socketiod` |
|
||||
| `webvirt-worker` | `webvirtcloud-worker` | `manage.py run_worker` |
|
||||
| `webvirt-worker` | `worker` | `manage.py run_worker` |
|
||||
| `webvirt-backup.timer` | `cron` (`/etc/cron.d/webvirtcloud-backup`) | `manage.py backup` |
|
||||
| `webvirt-gstfsd` (on computes) | | `conf/daemon/gstfsd` |
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue