Skip to content

Instantly share code, notes, and snippets.

@nunix
Created July 5, 2026 07:56
Show Gist options
  • Select an option

  • Save nunix/beb4abbade5d2cf45d2dcf6dcc655cce to your computer and use it in GitHub Desktop.

Select an option

Save nunix/beb4abbade5d2cf45d2dcf6dcc655cce to your computer and use it in GitHub Desktop.
Podman Quadlet unit — command center prod service (Nunix Universe Imperium fleet)
[Unit]
Description=fleet-v3 command center (prod)
[Container]
Image=localhost/fleet-v3:prod
ContainerName=fleet-v3
AutoUpdate=registry
Environment=DATABASE_URL=postgresql://[DB_USER]:[DB_PASSWORD]@[DB_HOST]/[DB_NAME]?sslmode=disable
# Network=host: container shares host network namespace so loopback-mapped hostname
# imperator.fleet.local (→127.0.0.1 in /etc/hosts) correctly resolves to host's Postgres.
# Bridge networks have their own loopback; 127.0.0.1 would point at container itself, not host.
Network=host
[Service]
Restart=always
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment