-
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 (43 loc) · 1.2 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (43 loc) · 1.2 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
version: '3.8'
# Development overrides for hot reload and debugging
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: build # Stay in build stage for development
volumes:
- ./backend/src:/src/src:ro
- ./backend/tests:/src/tests:ro
environment:
ASPNETCORE_ENVIRONMENT: Development
Logging__LogLevel__Default: Debug
Logging__LogLevel__Microsoft.EntityFrameworkCore: Information
command: dotnet watch run --project /src/src/BudgetBridge.Api/BudgetBridge.Api.csproj --no-restore
ports:
- "8080:8080"
- "5001:5001" # HTTPS (if needed)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: development # If multi-stage Dockerfile exists
volumes:
- ./frontend/src:/app/src:ro
- ./frontend/public:/app/public:ro
environment:
- NODE_ENV=development
- VITE_API_URL=http://localhost:8080
command: pnpm dev --host
ports:
- "5173:5173"
postgres:
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: dev_password
volumes:
- postgres_dev_data:/var/lib/postgresql/data
volumes:
postgres_dev_data:
driver: local