-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
64 lines (61 loc) · 1.47 KB
/
docker-compose.dev.yml
File metadata and controls
64 lines (61 loc) · 1.47 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: thinkonwiki-backend-dev
ports:
- "8000:8000"
volumes:
# Mount source code for hot reload
- ./backend:/app
# Persistent volume for archives
- archives:/app/archives
environment:
- PYTHONUNBUFFERED=1
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- NANOGPT_API_KEY=${NANOGPT_API_KEY:-}
# Enable auto-reload
- WATCHFILES_FORCE_POLLING=true
networks:
- thinkonwiki-network
restart: unless-stopped
command:
[
"uvicorn",
"app.main:app",
"--host",
"0.0.0.0",
"--port",
"8000",
"--reload",
]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: thinkonwiki-frontend-dev
ports:
- "3000:5173"
volumes:
# Mount source code for hot reload
- ./frontend:/app
# Use node_modules from container (not host)
- /app/node_modules
environment:
- VITE_API_URL=${VITE_API_URL:-http://localhost:8000}
- VITE_WS_URL=${VITE_WS_URL:-ws://localhost:8000}
networks:
- thinkonwiki-network
restart: unless-stopped
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
networks:
thinkonwiki-network:
driver: bridge
volumes:
archives:
driver: local
driver_opts:
type: none
o: bind
device: ${ARCHIVES_PATH:-./backend/archives}