Fluxheim/Dokumentation/Systemd og containere

Systemd og containere

Brug systemd til native hosts eller rootless containere til isolerede deployments.

Rootless Podman-kørsel-kørsel

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-punkt-punktRecommended mode
Config-indstilling-indstillingRead-only bind mount-punkt.
Statisk indholdRead-only bind mount-punkt.
ACME-statePersistent skrivbart volume.
Disk cachePersistent writable volume sized for the cache policy.
HemmelighederContainer secret eller credentials directory, ikke en public file.

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-tjekliste

  • Pin release-versioner eller image digests.
  • Mount-punkt-punkt config og indhold read-only.
  • Keep ACME and cache state on persistent volumes.
  • Valider config mod den profil, du planlægger at køre.
  • Hold health checks og rollback-kommandoer klar, før trafik ændres.
Dansk