mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-27 14:01:15 +00:00
Update docker-compose.yml
add healthcheck
This commit is contained in:
parent
9ea94476cc
commit
a363dcb1d3
|
@ -9,6 +9,11 @@ services:
|
|||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: "nc localhost 2368 || exit 1"
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
expose:
|
||||
- 2368
|
||||
ports:
|
||||
|
|
Loading…
Reference in New Issue
Block a user