2024-03-06 18:53:48 +03:00
|
|
|
services:
|
|
|
|
inference:
|
|
|
|
container_name: inference-basic-eth-pred
|
2024-08-08 16:08:44 +03:00
|
|
|
build: .
|
2024-03-06 18:53:48 +03:00
|
|
|
command: python -u /app/app.py
|
|
|
|
ports:
|
2024-08-08 14:12:31 +03:00
|
|
|
- "8002:8000"
|
2024-05-29 13:10:08 +03:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/inference/ETH"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 12
|
2024-05-29 13:41:09 +03:00
|
|
|
volumes:
|
|
|
|
- ./inference-data:/app/data
|
|
|
|
|
2024-03-06 20:07:54 +03:00
|
|
|
updater:
|
|
|
|
container_name: updater-basic-eth-pred
|
2024-08-08 16:08:44 +03:00
|
|
|
build: .
|
2024-03-06 20:07:54 +03:00
|
|
|
environment:
|
|
|
|
- INFERENCE_API_ADDRESS=http://inference:8000
|
2024-05-29 13:10:08 +03:00
|
|
|
command: >
|
|
|
|
sh -c "
|
|
|
|
while true; do
|
|
|
|
python -u /app/update_app.py;
|
2024-05-29 13:41:09 +03:00
|
|
|
sleep 24h;
|
2024-05-29 13:10:08 +03:00
|
|
|
done
|
|
|
|
"
|
2024-03-06 20:07:54 +03:00
|
|
|
depends_on:
|
2024-05-29 13:10:08 +03:00
|
|
|
inference:
|
|
|
|
condition: service_healthy
|
2024-03-06 18:53:48 +03:00
|
|
|
|
2024-08-08 14:50:17 +03:00
|
|
|
worker:
|
|
|
|
container_name: worker
|
|
|
|
image: alloranetwork/allora-offchain-node:latest
|
2024-03-06 18:53:48 +03:00
|
|
|
volumes:
|
2024-08-08 14:50:17 +03:00
|
|
|
- ./worker-data:/data
|
2024-06-28 07:19:18 +03:00
|
|
|
depends_on:
|
2024-08-07 19:27:04 +03:00
|
|
|
inference:
|
|
|
|
condition: service_healthy
|
|
|
|
env_file:
|
2024-08-08 14:50:17 +03:00
|
|
|
- ./worker-data/env_file
|
2024-03-06 18:53:48 +03:00
|
|
|
|
|
|
|
volumes:
|
2024-05-29 13:41:09 +03:00
|
|
|
inference-data:
|
2024-08-08 14:50:17 +03:00
|
|
|
worker-data:
|