Change deploy.update_config for zero-downtime deployments 🤘
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-07-21 12:54:30 +02:00
parent 5a58735a55
commit fbcd1e8616
1 changed files with 4 additions and 3 deletions

View File

@ -30,8 +30,9 @@ services:
- hub_token
# - spoke_host_token
deploy:
restart_policy:
condition: on-failure
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5000"
@ -50,7 +51,7 @@ services:
start_period: 1m
db:
image: "postgres:9.6.5"
image: "postgres:9.6.5-alpine"
networks:
- internal
volumes: