[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