-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.22 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
services:
lean:
build: ./lean-core
volumes:
- ./data:/Data
# Only mount data directory, not the entire Lean source (to preserve built DLLs)
# Uncomment below for development to live-edit algorithms:
# - ./lean-core/Algorithm.Python:/Lean/Algorithm.Python
environment:
- LEAN_DATA_DIRECTORY=/Data
env_file:
- .env
stdin_open: true
tty: true
# Keep container running so we can exec backtests into it
command: tail -f /dev/null
rebate:
build: ./services/rebate
ports:
- "8501:8501"
volumes:
# Mount only the app code for live reload, not the entire directory
- ./services/rebate/app.py:/app/app.py
environment:
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
env_file:
- .env
strategy:
build: ./services/strategy
volumes:
- ./data:/app/data
# Mount generated strategies directory to persist output
- ./services/strategy/generated:/app/generated
# Optionally mount source for development:
# - ./services/strategy/generate.py:/app/generate.py
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
env_file:
- .env
depends_on:
- lean