systemd,compose: adjust restart policy

This commit is contained in:
surtur 2022-09-28 16:35:26 +02:00
parent 260ad07626
commit 594825aa53
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 2 additions and 2 deletions

@ -8,7 +8,7 @@ services:
volumes:
- /var/lib/drone:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock
restart: always
restart: unless-stopped
env_file:
- /etc/drone/server.env

@ -7,7 +7,7 @@ Upholds=nginx.service docker.service
[Service]
Slice=drone.slice
Delegate=no
Restart=always
Restart=on-abnormal
RestartSec=15s
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml