allora/docker-compose.yml

48 lines
1023 B
YAML
Raw Normal View History

2024-08-25 21:37:14 +03:00
services:
inference:
container_name: inference-basic-eth-pred
build: .
command: python -u /app/app.py
ports:
2024-09-05 02:29:32 +03:00
- "8080:8080"
2024-08-25 21:37:14 +03:00
healthcheck:
2024-09-05 03:20:48 +03:00
test: ["CMD", "curl", "-f", "http://localhost:8080/inference/ETH/10m"]
2024-09-05 03:23:06 +03:00
interval: 30s
2024-08-25 21:37:14 +03:00
timeout: 5s
2024-09-05 03:23:06 +03:00
retries: 20
2024-08-25 21:37:14 +03:00
volumes:
- ./inference-data:/app/data
restart: always
updater:
container_name: updater-basic-eth-pred
build: .
environment:
2024-09-05 02:29:32 +03:00
- INFERENCE_API_ADDRESS=http://inference:8080
2024-08-25 21:37:14 +03:00
command: >
sh -c "
while true; do
python -u /app/update_app.py;
sleep 24h;
done
"
depends_on:
inference:
condition: service_healthy
restart: always
worker:
container_name: worker
image: alloranetwork/allora-offchain-node:latest
volumes:
- ./worker-data:/data
depends_on:
inference:
condition: service_healthy
env_file:
- ./worker-data/env_file
restart: always
volumes:
inference-data:
worker-data: