[Unit] Description=Gitea Docker Compose stack Requires=docker.service After=docker.service network-online.target Wants=network-online.target [Service] Type=oneshot RemainAfterExit=yes WorkingDirectory={{ gitea.path }} ExecStart=/usr/bin/docker compose -f {{ gitea.path }}/compose.yaml up -d ExecStop=/usr/bin/docker compose -f {{ gitea.path }}/compose.yaml down TimeoutStartSec=0 [Install] WantedBy=multi-user.target