Skip to content

Commit b22cebd

Browse files
committed
deploy replica for 0 downtime updates
1 parent 16991af commit b22cebd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

deploy/vbos/docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
services:
22
vbos-backend:
33
image: ghcr.io/developmentseed/vbos-backend:main
4+
deploy:
5+
mode: replicated
6+
replicas: 1
7+
update_config:
8+
order: start-first
9+
failure_action: rollback
10+
healthcheck:
11+
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
12+
interval: 10s
13+
timeout: 5s
14+
retries: 5
415
environment:
516
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
617
- DJANGO_AWS_ACCESS_KEY_ID=${DJANGO_AWS_ACCESS_KEY_ID}
@@ -10,7 +21,7 @@ services:
1021
- DJANGO_SETTINGS_MODULE=vbos.config.production
1122
- PORT=8000
1223
ports:
13-
- 8080:8000
24+
- "8080:8000"
1425
ipc: host
1526
networks:
1627
- caddy

0 commit comments

Comments
 (0)