sysfiles/etc/systemd/system/ddns-updater-dc.service

17 lines
390 B
SYSTEMD
Raw Normal View History

2023-02-11 16:29:32 +01:00
[Unit]
Description=DDNS updater (Compose Service)
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/ddns-updater
ExecStart=/usr/bin/docker-compose --project-name ddns-updater up
ExecStop=/usr/bin/docker-compose --project-name ddns-updater down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target