Update docker-compose.yml
add healthcheck
This commit is contained in:
parent
9ea94476cc
commit
a363dcb1d3
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,11 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
healthcheck:
|
||||||
|
test: "nc localhost 2368 || exit 1"
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
expose:
|
expose:
|
||||||
- 2368
|
- 2368
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue