allora/docker-compose.yml

45 lines
961 B
YAML
Raw Normal View History

2024-03-06 18:53:48 +03:00
services:
inference:
container_name: inference-basic-eth-pred
build: .
2024-03-06 18:53:48 +03:00
command: python -u /app/app.py
ports:
2024-08-08 16:19:06 +03:00
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/inference/ETH"]
interval: 10s
timeout: 5s
retries: 12
volumes:
- ./inference-data:/app/data
2024-03-06 20:07:54 +03:00
updater:
container_name: updater-basic-eth-pred
build: .
2024-03-06 20:07:54 +03:00
environment:
- INFERENCE_API_ADDRESS=http://inference:8000
command: >
sh -c "
while true; do
python -u /app/update_app.py;
sleep 24h;
done
"
2024-03-06 20:07:54 +03:00
depends_on:
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:
inference:
condition: service_healthy
env_file:
- ./worker-data/env_file
2024-03-06 18:53:48 +03:00
volumes:
inference-data:
worker-data: