-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
66 lines (60 loc) · 1.42 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
# Local development / full-stack demo compose.
# Usage:
# docker compose up # all API services (no live engine)
# docker compose --profile live up # + live trading engine
services:
data-service:
build:
context: .
target: data-service
ports:
- "8001:8001"
volumes:
- ./data:/app/data
environment:
DATA_DIR: /app/data
alpha-service:
build:
context: .
target: alpha-service
ports:
- "8002:8002"
strategy-service:
build:
context: .
target: strategy-service
ports:
- "8003:8003"
executor-api:
build:
context: .
target: executor
ports:
- "8004:8004"
depends_on:
- data-service
- strategy-service
- report-service
environment:
DATA_SERVICE_URL: http://data-service:8001
STRATEGY_SERVICE_URL: http://strategy-service:8003
REPORT_SERVICE_URL: http://report-service:8005
executor-live:
build:
context: .
target: executor
command: ["uv", "run", "python", "-m", "executor.run_live"]
# Live profile intentionally requires a local .env with exchange credentials.
env_file: .env
volumes:
- ./data:/app/data
- ./engine-state.json:/app/engine-state.json
- ./journal:/app/journal
profiles:
- live
report-service:
build:
context: .
target: report-service
ports:
- "8005:8005"