2023-12-09 17:35:13 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2023-12-14 16:32:45 +08:00
|
|
|
pzx-web-api-1:
|
2023-12-09 17:35:13 +08:00
|
|
|
image: gitea.bearcatlog.com/bryant/ddk/pzx-web-api:latest
|
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
ports:
|
|
|
|
- target: 5000
|
2024-01-15 17:54:59 +08:00
|
|
|
published: 7100
|
2023-12-14 16:32:45 +08:00
|
|
|
mode: host
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
2024-01-15 17:54:59 +08:00
|
|
|
replicas: 1
|
2023-12-14 16:32:45 +08:00
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
failure_action: rollback
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints:
|
2024-01-15 17:54:59 +08:00
|
|
|
- 'node.role == manager'
|
2023-12-14 16:32:45 +08:00
|
|
|
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
|
2024-01-15 17:54:59 +08:00
|
|
|
published: 7110
|
2023-12-14 16:32:45 +08:00
|
|
|
mode: host
|
2023-12-09 17:35:13 +08:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
2024-01-15 17:54:59 +08:00
|
|
|
replicas: 1
|
2023-12-09 17:35:13 +08:00
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
failure_action: rollback
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints:
|
2024-01-15 17:54:59 +08:00
|
|
|
- 'node.role == manager'
|
2023-12-09 17:35:13 +08:00
|
|
|
networks:
|
|
|
|
- pzx-web-api-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
pzx-web-api-network:
|
|
|
|
driver: overlay
|