Files
stoat/roles/stoat/templates/podman-compose-stoat.service.j2
2026-09-13 14:00:45 -06:00

19 lines
588 B
Django/Jinja

[Unit]
Description=Stoat - self-hosted chat (podman-compose)
Documentation=https://github.com/stoatchat/self-hosted
After=network-online.target
Wants=network-online.target
[Service]
# oneshot + RemainAfterExit: the unit tracks compose state while
# the containers themselves run detached under the root podman.
Type=oneshot
RemainAfterExit=yes
WorkingDirectory={{ stoat_install_dir }}
ExecStart=/usr/bin/podman-compose up -d --remove-orphans
ExecStop=/usr/bin/podman-compose down
# First start pulls ~2 GB of images; be generous.
TimeoutStartSec=900
[Install]
WantedBy=multi-user.target