Skip to content

Commit

Permalink
chore: update staging deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Sep 27, 2023
1 parent 1290cc8 commit 5082bbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ x-logging: &x-logging

x-update-config: &x-update-config
update_config:
order: start-first
order: stop-first
failure_action: rollback
parallelism: 2
delay: 5s
rollback_config:
failure_action: pause
monitor: 5s
parallelism: 2
order: start-first
order: stop-first

version: '3.8'

Expand All @@ -25,7 +25,7 @@ services:
<<: *x-logging
command:
- --log.level=DEBUG
- --api.insecure=true
- --api.insecure=false
- --providers.docker=true
- --providers.docker.watch=true
- --providers.docker.swarmMode=true
Expand All @@ -43,17 +43,15 @@ services:
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cloud
deploy:
replicas: 1
mode: global
<<: *x-update-config
placement:
max_replicas_per_node: 1
constraints:
- node.role == manager

Expand All @@ -65,8 +63,9 @@ services:
deploy:
<<: *x-update-config
mode: replicated
replicas: 5
replicas: 6
placement:
max_replicas_per_node: 2
constraints:
- node.role == worker
preferences:
Expand Down
2 changes: 1 addition & 1 deletion docker/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ services:
<<: *x-update-config
mode: replicated
replicas: 6
max_replicas_per_node: 2
placement:
max_replicas_per_node: 2
constraints:
- node.role == worker
preferences:
Expand Down

0 comments on commit 5082bbf

Please sign in to comment.