modified: main_dc/docker-compose.yml
add health check for nginx
This commit is contained in:
@@ -47,10 +47,17 @@ services:
|
|||||||
- app-network
|
- app-network
|
||||||
- bb-network
|
- bb-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- certbot
|
certbot:
|
||||||
|
condition: service_healthy
|
||||||
- api
|
- api
|
||||||
- api_bb
|
- api_bb
|
||||||
- analytics
|
- analytics
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
|
||||||
analytics:
|
analytics:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user