Skip to content

Commit

Permalink
Add health check for PHP API to help with --wait in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PGijsbers committed Nov 14, 2023
1 parent 6333b7c commit b95659e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ services:
condition: service_healthy
database:
condition: service_started
healthcheck:
test: curl 127.0.0.1:80 | grep -e "openml"
start_period: 30s
start_interval: 5s
timeout: 3s
interval: 1m

python-api:
container_name: "python-api"
Expand Down

0 comments on commit b95659e

Please sign in to comment.