Add inference service healthcheck to ensure the updater service properly starts up
This commit is contained in:
parent
2c8da7c7db
commit
244ea79d0a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user