diff --git a/docker-compose.yml b/docker-compose.yml index 32f2ecf..740aae8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,10 @@ services: ports: - 67:67/udp - 8000:8000 + healthcheck: + test: bash -c "[ -f /tmp/kea_started ]" + timeout: 20s + retries: 10 volumes: - $HOME/.aws/credentials:/root/.aws/credentials:ro - ./dhcp-service/metrics/:/metrics @@ -89,7 +93,7 @@ services: db: condition: service_healthy dhcp-primary: - condition: service_started + condition: service_healthy ports: - 68:68/udp volumes: