-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
30 lines (28 loc) · 1.09 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
30 lines (28 loc) · 1.09 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
services:
sandbox:
volumes:
# In dev mode, sandbox gets read-write source access for self-improvement.
- ./prax:/source/prax
- ./app.py:/source/app.py
- ./config.py:/source/config.py
- ./tests:/source/tests
app:
volumes:
# Mount source code for live reload — changes take effect without rebuilding.
- ./prax:/app/prax
- ./app.py:/app/app.py
- ./config.py:/app/config.py
- ./scripts:/app/scripts
- ./tests:/app/tests
# Git repo needed for self-improve deploys (must be read-write for commits).
- ./.git:/app/.git
environment:
- DEBUG=true
# In dev mode, mount TeamWork source for live reload.
# Python changes auto-reload via uvicorn --reload.
# Frontend changes: run `cd ../teamwork/frontend && npx vite build` — output
# lands in src/teamwork/static/ which is already mounted, so just refresh browser.
teamwork:
command: ["python", "-m", "uvicorn", "teamwork.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
volumes:
- ${TEAMWORK_PATH:-../teamwork}/src/teamwork:/app/teamwork