servarr-stack – Rev 1
?pathlinks?
[Unit]
Description=Gotify
After=docker.service
Requires=docker.service
StartLimitIntervalSec=0
[Service]
Restart=always
RestartSec=5s
ExecStartPre=/bin/sh -c '/usr/bin/docker network create entertainment || true'
ExecStartPre=/usr/bin/docker pull gotify/server
ExecStart=/usr/bin/docker run --name=gotify \
--rm \
--hostname gotify \
--net=entertainment \
--interactive \
--user 0:0 \
--health-cmd 'curl -f http://localhost:80/health || exit 1' \
--health-interval 1m \
--health-retries 3 \
--health-timeout 10s \
--health-start-period 60s \
-e TZ=Etc/UTC \
-p 50111:80 \
-v /mnt/swarm/docker/data/gotify:/app/data \
gotify/server
ExecStop=/usr/bin/docker stop gotify
ExecStop=/usr/bin/docker rm -f gotify
TimeoutSec=300
Environment=DOCKER_CONFIG=/etc/docker
[Install]
WantedBy=multi-user.target