-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (70 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
77 lines (70 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ============================================
# Quant Hedge Fund - Docker Compose
# ============================================
# Multi-service deployment for local development
version: '3.8'
services:
dashboard:
build:
context: .
dockerfile: Dockerfile
container_name: qhf-dashboard
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./.env:/app/.env:ro
environment:
- PYTHONPATH=/app
- DUCKDB_PATH=/app/data/quant.duckdb
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
mlflow:
image: ghcr.io/mlflow/mlflow:v2.9.0
container_name: qhf-mlflow
ports:
- "5050:5000"
volumes:
- ./mlruns:/mlflow/mlruns
- ./mlartifacts:/mlflow/mlartifacts
command: >
mlflow server
--backend-store-uri sqlite:///mlflow/mlruns/mlflow.db
--default-artifact-root /mlflow/mlartifacts
--host 0.0.0.0
--port 5000
restart: unless-stopped
prefect:
image: prefecthq/prefect:2-python3.11
container_name: qhf-prefect
ports:
- "4200:4200"
volumes:
- ./automation:/app/automation
- ./data:/app/data
command: prefect server start --host 0.0.0.0
restart: unless-stopped
# Optional: Luigi scheduler for development
luigi:
build:
context: .
dockerfile: Dockerfile
container_name: qhf-luigi
ports:
- "8082:8082"
command: luigid --port 8082
restart: unless-stopped
profiles:
- development
volumes:
mlruns:
mlartifacts:
networks:
default:
name: qhf-network