Add healthcheck for backend service in docker-compose.yml
This commit is contained in:
parent
d1365ba5c5
commit
2adb9e1606
1 changed files with 5 additions and 0 deletions
|
|
@ -110,6 +110,11 @@ services:
|
||||||
PGPORT: "5432"
|
PGPORT: "5432"
|
||||||
IMAGEOPTION: "true"
|
IMAGEOPTION: "true"
|
||||||
CONCURRENT_IMAGES: ${CONCURRENT_IMAGES}
|
CONCURRENT_IMAGES: ${CONCURRENT_IMAGES}
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:1323/"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
depends_on:
|
depends_on:
|
||||||
minio:
|
minio:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue