Fluxheim/Dokument/systemd och containrar

systemd och containrar

Använd systemd för native-värdar eller rootless-containrar för isolerade driftsättningar.

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

MountRecommended mode
ConfigLasbar bind mount.
Statiskt innehallLasbar bind mount.
ACME-tillstandPersistent skrivbar volym.
Disk cachePersistent writable volume sized for the cache policy.
SecretsContainer-secret eller credentials-katalog, inte en publik fil.

Systemd-flode

fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
sudo systemctl restart fluxheim
sudo systemctl status fluxheim
journalctl -u fluxheim -n 100 --no-pager

Produktionschecklista

  • Pinna release-versioner eller image-digests.
  • Montera konfiguration och innehåll read-only.
  • Keep ACME and cache state on persistent volumes.
  • Validera konfigurationen mot profilen du planerar att kora.
  • Ha health checks och rollback-kommandon redo innan trafiken andras.
Svenska