Systemdとコンテナ
native hostsにはsystemd、隔離deploymentにはrootless containersを使います。
Rootless Podman実行実行
podman run --name fluxheim --replace \
-p 8080:8080 \
-v ./fluxheim.toml:/etc/fluxheim/fluxheim.toml:ro \
-v ./site:/srv/site:ro \
-v fluxheim-cache:/var/cache/fluxheim \
ghcr.io/valkyoth/fluxheim:v1.6.30
container mounts
| mount | Recommended mode |
|---|---|
| config | read-only bind mount。 |
| static content | read-only bind mount。 |
| ACME state保存先保存先 | persistent writable volume。 |
| Disk cache | Persistent writable volume sized for the cache policy. |
| secrets | public fileではなく、container secretまたはcredentials directory。 |
systemd flow
fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
sudo systemctl restart fluxheim
sudo systemctl status fluxheim
journalctl -u fluxheim -n 100 --no-pager
production checklist
- release versionsまたはimage digestsを固定します。
- configとcontentはread-onlyでmountします。
- Keep ACME and cache state on persistent volumes.
- 実行予定のprofileに対してconfigを検証します。
- trafficを変更する前にhealth checksとrollback commandsを用意します。