2024-03-06 18:53:48 +03:00
|
|
|
services:
|
|
|
|
inference:
|
2024-09-05 16:41:27 +03:00
|
|
|
container_name: inference
|
2024-09-04 21:24:42 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-08-10 01:04:19 +03:00
|
|
|
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"
|
2024-05-29 13:10:08 +03:00
|
|
|
healthcheck:
|
2024-09-05 16:41:27 +03:00
|
|
|
test: ["CMD", "curl", "-f", "http://inference:8000/inference/${TOKEN}"]
|
2024-05-29 13:10:08 +03:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 12
|
2024-05-29 13:41:09 +03:00
|
|
|
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
|
2024-08-10 01:04:19 +03:00
|
|
|
build: .
|
2024-03-06 20:07:54 +03:00
|
|
|
environment:
|
|
|
|
- INFERENCE_API_ADDRESS=http://inference:8000
|
2024-05-29 13:10:08 +03:00
|
|
|
command: >
|
|
|
|
sh -c "
|
|
|
|
while true; do
|
|
|
|
python -u /app/update_app.py;
|
2024-05-29 13:41:09 +03:00
|
|
|
sleep 24h;
|
2024-05-29 13:10:08 +03:00
|
|
|
done
|
|
|
|
"
|
2024-03-06 20:07:54 +03:00
|
|
|
depends_on:
|
2024-05-29 13:10:08 +03:00
|
|
|
inference:
|
|
|
|
condition: service_healthy
|
2024-03-06 18:53:48 +03:00
|
|
|
|
2024-08-08 14:50:17 +03:00
|
|
|
worker:
|
|
|
|
container_name: worker
|
2024-09-04 21:24:42 +03:00
|
|
|
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:
|
2024-08-07 19:27:04 +03:00
|
|
|
inference:
|
|
|
|
condition: service_healthy
|
2024-08-10 01:04:19 +03:00
|
|
|
env_file:
|
|
|
|
- ./worker-data/env_file
|
2024-03-06 18:53:48 +03:00
|
|
|
|
|
|
|
volumes:
|
2024-05-29 13:41:09 +03:00
|
|
|
inference-data:
|
2024-08-10 01:04:19 +03:00
|
|
|
worker-data:
|