systemd,compose: adjust restart policy
This commit is contained in:
parent
260ad07626
commit
594825aa53
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user