-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
41 lines (36 loc) · 1.17 KB
/
docker-compose.dev.yml
File metadata and controls
41 lines (36 loc) · 1.17 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
# Development overrides for Docker Compose
# Adds hot reload, debug settings, and development volumes
# Usage: docker-compose -f docker-compose.yml -f docker-compose.database.yml -f docker-compose.app.yml -f docker-compose.dev.yml up
version: '3.8'
services:
postgres:
ports:
- "5432:5432" # Expose for external tools
backend:
volumes:
- ./apps/backend:/app
- /app/__pycache__
- /app/.venv
- ./docker/volumes/uploads:/app/uploads
environment:
ENVIRONMENT: development
LOG_LEVEL: DEBUG
RELOAD: "true"
command: uvicorn main:app --host 0.0.0.0 --port 5000 --reload
restart: "no" # Don't restart in development
frontend:
volumes:
- ./apps/frontend:/app
- /app/node_modules
- /app/.vite
environment:
NODE_ENV: development
command: npm run dev -- --host 0.0.0.0 --port 5173
restart: "no" # Don't restart in development
nginx:
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
# Enable live reload of nginx config
command: nginx -g 'daemon off;'
restart: "no" # Don't restart in development