[Unit] Description=Forgejo (Compose Service) Requires=docker.service After=docker.service [Service] WorkingDirectory=/opt/forgejo ExecStart=/usr/bin/docker compose --project-name forgejo up ExecStop=/usr/bin/docker compose --project-name forgejo down TimeoutStartSec=0 Restart=on-failure StartLimitBurst=3 [Install] WantedBy=multi-user.target