sysfiles/etc/systemd/system/forgejo-dc.service

16 lines
345 B
SYSTEMD
Raw Normal View History

2024-12-25 19:58:14 +01:00
[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