Podman (compose & quadlets)
The Docker & Compose guide covers the images, the volume requirement, upgrades, and most of the troubleshooting; this page is what is different under Podman.
Rootless
Section titled “Rootless”Rootless Podman is fine: the app listens on port 3000, which is above 1024, so an unprivileged user can bind it. If you remap to a port below 1024, rootless needs sysctl net.ipv4.ip_unprivileged_port_start=0 (or run privileged).
SELinux
Section titled “SELinux”On SELinux hosts (Fedora, RHEL), append :z (shared) or :Z (private) to bind mounts:
podman run -d --name galene \ -v /var/lib/galene:/app/data:Z \ -p 3000:3000 \ galene:appNamed volumes are relabeled by Podman automatically and need no suffix.
podman-compose
Section titled “podman-compose”The same docker-compose.yml works with podman-compose:
podman-compose up -dQuadlet
Section titled “Quadlet”For a systemd-managed container, a quadlet unit is the cleanest path. For a rootless user, put this in ~/.config/containers/systemd/galene.container (for a system service, /etc/containers/systemd/ instead):
[Container]Image=ghcr.io/galene-finance/galene:latestContainerName=galenePublishPort=3000:3000Volume=galene_data:/app/dataEnvironment=GALENE_COOKIE_SECURE=0HealthCmd=["bun", "-e", "fetch(\"http://localhost:3000/health\").then(r => process.exit(r.status === 200 ? 0 : 1)).catch(() => process.exit(1))"]HealthInterval=30sHealthTimeout=5sHealthRetries=3HealthStartPeriod=15s
[Service]Restart=always
[Install]WantedBy=default.targetQuadlet generates galene.service from galene.container. Keep the file name galene.container; systemctl and journalctl use the generated service. WantedBy= in [Install] installs that service, so enable does not apply. Reload and start:
systemctl --user daemon-reloadsystemctl --user start galene.servicejournalctl --user -u galene.service -fNotes:
- The named volume
galene_datais created by Podman on first start and relabeled automatically. If you prefer a bind mount, useVolume=/path/on/host:/app/data:Z(:Zon SELinux hosts). GALENE_COOKIE_SECURE=0is for plain HTTP; set it to1behind a TLS-terminating proxy (Reverse proxy).- For a system unit, set
WantedBy=multi-user.target, thensystemctl daemon-reloadandsystemctl start galene.service(without--user).
Healthcheck
Section titled “Healthcheck”CI publishes the image in OCI format. Docker applies the Dockerfile HEALTHCHECK. Podman applies that instruction only to Docker-format images, so under Podman and Quadlet the image check never runs. The image has bun and node, and no curl or wget.
Add these keys to the quadlet [Container] section (they are already in the unit above). The probe calls http://localhost:3000/health on the port the process listens on inside the container (PORT and EXPOSE are 3000). PublishPort only chooses the host port; a mapping such as 5174:3000 still uses localhost:3000 here.
HealthCmd=["bun", "-e", "fetch(\"http://localhost:3000/health\").then(r => process.exit(r.status === 200 ? 0 : 1)).catch(() => process.exit(1))"]HealthInterval=30sHealthTimeout=5sHealthRetries=3HealthStartPeriod=15sThe shell-string form (HealthCmd=bun -e "...") loses its inner quotes through Quadlet and systemd, and the container stays unhealthy. Use the JSON array form above.
Reload and restart, then run the check by container name (ContainerName in the unit; galene in the example):
systemctl --user daemon-reloadsystemctl --user restart galene.servicepodman healthcheck run galenepodman pspodman healthcheck run galene exits 0, and podman ps shows (healthy). For a system unit, drop --user on the systemctl commands.
Storage driver
Section titled “Storage driver”Avoid vfs — it is very slow for the SQLite WAL workload. overlay/overlay2 (the default) is what you want.
Pulling from GHCR
Section titled “Pulling from GHCR”Public images pull anonymously — no login:
podman pull ghcr.io/galene-finance/galene:latestOnly if pull fails (private package, org policy, rate limits, etc.) run podman login ghcr.io with a classic personal access token that has read:packages. Fine-grained tokens cannot authenticate to GHCR.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Fix |
|---|---|
| Can’t bind a port below 1024 as a normal user | sysctl net.ipv4.ip_unprivileged_port_start=0, or use a port ≥ 1024. |
podman pull ghcr.io/… fails after a fine-grained login |
podman logout ghcr.io and pull anonymously, or use a classic PAT with read:packages. |
The volume requirement, upgrades, and the cookie behavior match Docker & Compose. Podman healthcheck setup is in Healthcheck.