fix: update docker swarm config 2
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d377897729
commit
dd65676fb1
@ -12,7 +12,7 @@ services:
|
||||
mode: host
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
update_config:
|
||||
parallelism: 1
|
||||
failure_action: rollback
|
||||
@ -23,34 +23,34 @@ services:
|
||||
window: 120s
|
||||
placement:
|
||||
constraints:
|
||||
- 'node.role == manager'
|
||||
networks:
|
||||
- pzx-web-api-network
|
||||
pzx-web-api-2:
|
||||
image: gitea.bearcatlog.com/bryant/ddk/pzx-web-api:latest
|
||||
env_file:
|
||||
- .apiflaskenv
|
||||
- .apiflask.env
|
||||
ports:
|
||||
- target: 5000
|
||||
published: 7110
|
||||
mode: host
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
parallelism: 1
|
||||
failure_action: rollback
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
placement:
|
||||
constraints:
|
||||
- 'node.role == manager'
|
||||
- 'node.role == worker'
|
||||
networks:
|
||||
- pzx-web-api-network
|
||||
# pzx-web-api-2:
|
||||
# image: gitea.bearcatlog.com/bryant/ddk/pzx-web-api:latest
|
||||
# env_file:
|
||||
# - .apiflaskenv
|
||||
# - .apiflask.env
|
||||
# ports:
|
||||
# - target: 5000
|
||||
# published: 7110
|
||||
# mode: host
|
||||
# deploy:
|
||||
# mode: replicated
|
||||
# replicas: 1
|
||||
# update_config:
|
||||
# parallelism: 1
|
||||
# failure_action: rollback
|
||||
# restart_policy:
|
||||
# condition: on-failure
|
||||
# delay: 5s
|
||||
# max_attempts: 3
|
||||
# window: 120s
|
||||
# placement:
|
||||
# constraints:
|
||||
# - 'node.role == worker'
|
||||
# networks:
|
||||
# - pzx-web-api-network
|
||||
|
||||
networks:
|
||||
pzx-web-api-network:
|
||||
|
Loading…
Reference in New Issue
Block a user