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