-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (41 loc) · 1.14 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
47 lines (41 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
34
35
36
37
38
39
40
41
42
43
44
45
46
# =============================================================================
# OTP VERIFICATION SYSTEM - Development Docker Compose Override
# =============================================================================
# Use with: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: builder # Use builder stage for dev dependencies
volumes:
- ./backend:/app
- /app/__pycache__
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
environment:
- APP_ENV=development
- APP_DEBUG=true
- LOG_LEVEL=DEBUG
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
command: npm run dev -- --host 0.0.0.0
environment:
- NODE_ENV=development
# Expose database and redis for direct access in development
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"
# Disable nginx in development
nginx:
profiles:
- production