# Podman Quadlet unit for prod. Install as the (rootless) user that runs it: # ~/.config/containers/systemd/sessions-web.container # then: systemctl --user daemon-reload && systemctl --user start sessions-web # Starts at boot only if that user has linger (sudo loginctl enable-linger ). [Unit] Description=sessions-web (Claude session manager UI) After=network-online.target Wants=network-online.target [Container] Image=localhost/sessions-web:latest ContainerName=sessions-web # Loopback only — the reverse proxy on this host is the only way in. PublishPort=127.0.0.1:8470:8470 EnvironmentFile=%h/.config/sessions-web/env # Secrets live in podman's secret store, not in files next to this unit. Secret=sessions-ssh-key,type=mount,target=/app/ssh_key,mode=0400,uid=10001 Secret=sessions-web-secret,type=env,target=SESSIONS_SECRET Secret=sessions-password-hash,type=env,target=SESSIONS_PASSWORD_HASH Volume=%h/.config/sessions-web/known_hosts:/app/known_hosts:ro,Z ReadOnly=true Tmpfs=/tmp Tmpfs=/home/app HealthCmd=python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8470/healthz', timeout=4)" HealthInterval=60s DropCapability=ALL NoNewPrivileges=true [Service] Restart=always RestartSec=5 [Install] WantedBy=default.target