allora/docker-compose.yml

57 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-06 18:53:48 +03:00
services:
inference:
container_name: inference-basic-eth-pred
build:
context: .
dockerfile: Dockerfile_inference
2024-03-06 18:53:48 +03:00
command: python -u /app/app.py
ports:
- "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:
context: .
dockerfile: Dockerfile_inference
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
node:
container_name: offchain_node_test
image: allora-offchain-node:latest
2024-03-06 18:53:48 +03:00
volumes:
- ./offchain-node-data:/data
2024-06-28 07:19:18 +03:00
depends_on:
inference:
condition: service_healthy
env_file:
- ./env.offchain-node
2024-03-06 18:53:48 +03:00
networks:
eth-model-local:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/24
volumes:
inference-data:
2024-03-06 18:53:48 +03:00
worker-data: