Skip to content

Commit 0ca4f2c

Browse files
committed
Registry: zerodowntime service update
When deploying changes we shall start container first to ensure zero-downtime smooth deployes
1 parent 5d85f68 commit 0ca4f2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

services/registry/docker-compose.yml.j2

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ services:
3636
- monitored
3737
deploy:
3838
replicas: ${OPS_REGISTRY_REPLICAS}
39+
update_config:
40+
order: start-first
41+
delay: 10s
42+
failure_action: rollback
43+
parallelism: 1
3944
placement:
4045
constraints:
4146
- node.labels.ops==true
@@ -103,6 +108,11 @@ services:
103108
- monitored
104109
deploy:
105110
mode: global
111+
update_config:
112+
order: start-first
113+
delay: 10s
114+
failure_action: rollback
115+
parallelism: 1
106116
placement:
107117
constraints:
108118
- node.labels.ops==true

0 commit comments

Comments
 (0)