fix: update docker swarm config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
aad23cf892
commit
d377897729
|
@ -8,11 +8,11 @@ services:
|
||||||
- .apiflask.env
|
- .apiflask.env
|
||||||
ports:
|
ports:
|
||||||
- target: 5000
|
- target: 5000
|
||||||
published: 7000
|
published: 7100
|
||||||
mode: host
|
mode: host
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 2
|
replicas: 1
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
|
@ -23,7 +23,7 @@ services:
|
||||||
window: 120s
|
window: 120s
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.role == worker'
|
- 'node.role == manager'
|
||||||
networks:
|
networks:
|
||||||
- pzx-web-api-network
|
- pzx-web-api-network
|
||||||
pzx-web-api-2:
|
pzx-web-api-2:
|
||||||
|
@ -33,11 +33,11 @@ services:
|
||||||
- .apiflask.env
|
- .apiflask.env
|
||||||
ports:
|
ports:
|
||||||
- target: 5000
|
- target: 5000
|
||||||
published: 7010
|
published: 7110
|
||||||
mode: host
|
mode: host
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 2
|
replicas: 1
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
|
@ -48,7 +48,7 @@ services:
|
||||||
window: 120s
|
window: 120s
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.role == worker'
|
- 'node.role == manager'
|
||||||
networks:
|
networks:
|
||||||
- pzx-web-api-network
|
- pzx-web-api-network
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue