diff --git a/docker-compose.yml b/docker-compose.yml index ea8eb16..c4777a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,15 +13,27 @@ services: aliases: - inference ipv4_address: 172.22.0.4 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/inference/ETH"] + interval: 10s + timeout: 5s + retries: 12 updater: container_name: updater-basic-eth-pred build: . environment: - INFERENCE_API_ADDRESS=http://inference:8000 - command: python -u /app/update_app.py + command: > + sh -c " + while true; do + python -u /app/update_app.py; + sleep 10; + done + " depends_on: - - inference + inference: + condition: service_healthy networks: eth-model-local: aliases: