systemd,compose: adjust restart policy
This commit is contained in:
parent
260ad07626
commit
594825aa53
@ -8,7 +8,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/lib/drone:/var/lib/drone
|
- /var/lib/drone:/var/lib/drone
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- /etc/drone/server.env
|
- /etc/drone/server.env
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Upholds=nginx.service docker.service
|
|||||||
[Service]
|
[Service]
|
||||||
Slice=drone.slice
|
Slice=drone.slice
|
||||||
Delegate=no
|
Delegate=no
|
||||||
Restart=always
|
Restart=on-abnormal
|
||||||
RestartSec=15s
|
RestartSec=15s
|
||||||
|
|
||||||
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user