Torjus Håkestad 879ddf46a2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix gpaste service file
2022-01-22 09:59:16 +01:00

23 lines
622 B
Django/Jinja

[Unit]
Description=Gpaste Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop gpaste
ExecStartPre=-/usr/bin/docker rm gpaste
ExecStartPre=-/usr/bin/docker pull registry.t-juice.club/gpaste:latest
ExecStart=/usr/bin/docker run \
-l "traefik.enable=true" \
-l "traefik.http.routers.gpaste.rule=Host(`paste.t-juice.club`)" \
-l "traefik.http.routers.gpaste.tls=true" \
-l "traefik.http.routers.gpaste.tls.certresolver=le" \
--network proxy \
--name gpaste registry.t-juice.club/gpaste:latest
[Install]
WantedBy=multi-user.target