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
|
||||
parallelism: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
|
||||
db:
|
||||
image: mariadb:10.6
|
||||
|
@ -77,7 +77,7 @@ services:
|
|||
delay: 5s
|
||||
parallelism: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
|
||||
agents-managers:
|
||||
image: woodpeckerci/woodpecker-agent:v3.8.0
|
||||
|
@ -109,7 +109,7 @@ services:
|
|||
delay: 120s
|
||||
parallelism: 4
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
volumes:
|
||||
- agent-secret:/etc/woodpecker/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
@ -147,7 +147,7 @@ services:
|
|||
delay: 120s
|
||||
parallelism: 4
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
volumes:
|
||||
- agent-secret:/etc/woodpecker/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
|
Loading…
Reference in New Issue