allora/docker-compose.yml
clementupshot cb8b17a3ed
Add real-time data fetching and configuration options
See README and .env.example
2024-09-04 20:24:42 +02:00

47 lines
993 B
YAML

services:
inference:
container_name: inference-basic-eth-pred
env_file:
- .env
build: .
command: python -u /app/app.py
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/inference/${TOKEN}"]
interval: 10s
timeout: 5s
retries: 12
volumes:
- ./inference-data:/app/data
updater:
container_name: updater-basic-eth-pred
build: .
environment:
- INFERENCE_API_ADDRESS=http://inference:8000
command: >
sh -c "
while true; do
python -u /app/update_app.py;
sleep 24h;
done
"
depends_on:
inference:
condition: service_healthy
worker:
container_name: worker
image: alloranetwork/allora-offchain-node:v0.3.0
volumes:
- ./worker-data:/data
depends_on:
inference:
condition: service_healthy
env_file:
- ./worker-data/env_file
volumes:
inference-data:
worker-data: