-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
33 lines (32 loc) · 1.14 KB
/
docker-compose.dev.yml
File metadata and controls
33 lines (32 loc) · 1.14 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
# Development composition - use with: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
# Provides fast hot-reloading development environment
services:
api:
volumes:
# Mount API source code for hot reloading
- ./api:/app:cached
# Exclude Python cache and virtual environment files
- /app/__pycache__
environment:
# Enable auto-reload for development
- PYTHONPATH=/app
spa:
build:
context: ./spa
dockerfile: Dockerfile
target: development
volumes:
# Mount source code for hot reloading
- ./spa/src:/app/src:cached
- ./spa/public:/app/public:cached
- ./spa/index.html:/app/index.html:cached
- ./spa/vite.config.ts:/app/vite.config.ts:cached
- ./spa/tailwind.config.js:/app/tailwind.config.js:cached
- ./spa/components.json:/app/components.json:cached
- ./spa/tsconfig.json:/app/tsconfig.json:cached
- ./spa/tsconfig.node.json:/app/tsconfig.node.json:cached
# Exclude node_modules to avoid conflicts
- /app/node_modules
environment:
# Enable file watching in Docker
- CHOKIDAR_USEPOLLING=true