allora/docker-compose.yml

47 lines
963 B
YAML
Raw Permalink Normal View History

2024-03-06 18:53:48 +03:00
services:
inference:
2024-09-05 16:41:27 +03:00
container_name: inference
env_file:
- .env
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:
2024-09-05 16:41:27 +03:00
test: ["CMD", "curl", "-f", "http://inference:8000/inference/${TOKEN}"]
interval: 10s
timeout: 5s
retries: 12
volumes:
- ./inference-data:/app/data
2024-03-06 20:07:54 +03:00
updater:
2024-09-05 16:41:27 +03:00
container_name: updater
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:v0.3.0
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: