forked from llm-d-incubation/llm-d-planner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (40 loc) · 1.35 KB
/
docker-compose.dev.yml
File metadata and controls
45 lines (40 loc) · 1.35 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
# Development overrides for docker-compose
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
backend:
# Override command to enable auto-reload
command: ["uvicorn", "neuralnav.api.app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
environment:
# Development-specific environment variables
DEBUG: "true"
LOG_LEVEL: debug
volumes:
# Additional volume mounts for development
- ./src:/app/src:delegated
- ./data:/app/data:delegated
- ./config:/app/config:delegated
ui:
# Streamlit already supports hot reload by default
environment:
# Development-specific environment variables
DEBUG: "true"
STREAMLIT_LOGGER_LEVEL: debug
volumes:
# Ensure UI code changes are reflected immediately
- ./ui:/app/ui:delegated
- ./.streamlit:/app/.streamlit:delegated
postgres:
# Expose additional ports for direct database access during development
ports:
- "5432:5432"
# Mount additional scripts for development
volumes:
- ./scripts/init-db.dump:/docker-entrypoint-initdb.d/init-db.dump
- ./scripts/01-restore-db.sh:/docker-entrypoint-initdb.d/01-restore-db.sh
ollama:
# Keep data persistent across restarts
volumes:
- ollama_data:/root/.ollama
volumes:
postgres_data:
ollama_data: