homelab/roles/gitea/templates/gitea.service.j2
2022-05-24 02:51:56 -04:00

15 lines
290 B
Django/Jinja

[Unit]
Description=Gitea Docker Service
PartOf=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory={{ gitea_root }}/
ExecStart={{ docker_compose }} up -d --remove-orphans
ExecStop={{ docker_compose }} down
[Install]
WantedBy=multi-user.target