-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
31 lines (31 loc) · 1.06 KB
/
docker-compose.dev.yml
File metadata and controls
31 lines (31 loc) · 1.06 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
services:
trellis:
# Use same GPU config as working docker-compose.yml
environment:
- CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-all}
# Enable hot reloading and better development experience
- STREAMLIT_SERVER_HEADLESS=false
# Explicitly bind Streamlit to all interfaces
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: ${GPU_COUNT:-all}
capabilities: [gpu]
ports:
# Explicitly bind to all interfaces for remote access
- "0.0.0.0:${HOST_PORT:-8501}:${APP_PORT:-8501}"
volumes:
# Mount only essential files to avoid GPU conflicts
# Critical for hot reloading: app.py and webui/
- ./app.py:/app/app.py:z
- ./webui:/app/webui:z
# Skip docs/ and assets/ - not essential for development
# NOT mounted: trellis/ (installed package - rebuild for changes)
# NOT mounted: extensions/ (compiled C++ code)
stdin_open: true
tty: true
networks:
- default