Fix restart policy for Docker Swarm compatibility - use 'any' instead of 'always'
This commit is contained in:
parent
2b9042f355
commit
dd2b42a9b1
|
|
@ -51,7 +51,7 @@ services:
|
||||||
delay: 5s
|
delay: 5s
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: any
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.6
|
image: mariadb:10.6
|
||||||
|
|
@ -77,7 +77,7 @@ services:
|
||||||
delay: 5s
|
delay: 5s
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: any
|
||||||
|
|
||||||
agents-managers:
|
agents-managers:
|
||||||
image: woodpeckerci/woodpecker-agent:v3.8.0
|
image: woodpeckerci/woodpecker-agent:v3.8.0
|
||||||
|
|
@ -109,7 +109,7 @@ services:
|
||||||
delay: 120s
|
delay: 120s
|
||||||
parallelism: 4
|
parallelism: 4
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: any
|
||||||
volumes:
|
volumes:
|
||||||
- agent-secret:/etc/woodpecker/
|
- agent-secret:/etc/woodpecker/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
@ -147,7 +147,7 @@ services:
|
||||||
delay: 120s
|
delay: 120s
|
||||||
parallelism: 4
|
parallelism: 4
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: any
|
||||||
volumes:
|
volumes:
|
||||||
- agent-secret:/etc/woodpecker/
|
- agent-secret:/etc/woodpecker/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue