modified: main_dc/docker-compose.yml
depends on health check all
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
services:
|
||||
|
||||
certbot:
|
||||
build:
|
||||
context: ./certbot
|
||||
@@ -17,7 +16,11 @@ services:
|
||||
- STAGING=0
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "test -f /etc/letsencrypt/live/$$(echo $${DOMAINS} | cut -d',' -f1)/fullchain.pem || exit 1"]
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"test -f /etc/letsencrypt/live/$$(echo $${DOMAINS} | cut -d',' -f1)/fullchain.pem || exit 1",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -49,9 +52,12 @@ services:
|
||||
depends_on:
|
||||
certbot:
|
||||
condition: service_healthy
|
||||
- api
|
||||
- api_bb
|
||||
- analytics
|
||||
api:
|
||||
condition: service_healthy
|
||||
api_bb:
|
||||
condition: service_healthy
|
||||
analytics:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user