-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
36 lines (34 loc) · 1.34 KB
/
docker-compose.override.yml
File metadata and controls
36 lines (34 loc) · 1.34 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
services:
backend:
build:
context: .
dockerfile: src/backend/Dockerfile
target: development # Development stage
volumes:
- ./src/backend:/app/src/backend # Mount source code (preserves compiled artifacts)
environment:
ASPNETCORE_ENVIRONMENT: "Development"
DOTNET_USE_POLLING_FILE_WATCHER: "true" # Enable file watching
ASPNETCORE_URLS: "http://+:5001"
command: dotnet watch run --project /app/src/backend/PublicApi/PublicApi.csproj --urls http://+:5001
frontend:
build:
context: ./src/frontend
dockerfile: Dockerfile
target: development # Development stage
ports:
- "5002:5002" # Map to Vite dev server port from config
volumes:
- ./src/frontend/src:/app/src # Mount only source code, not node_modules
- ./src/frontend/public:/app/public # Mount public assets
- ./src/frontend/index.html:/app/index.html # Mount main HTML
- ./src/frontend/vite.config.ts:/app/vite.config.ts # Mount vite config
- ./src/frontend/package.json:/app/package.json # Mount package.json
environment:
VITE_API_URL: "http://localhost:5001"
command: npm run dev -- --host 0.0.0.0
# Override migrator to run only when explicitly called
backend-migrator:
profiles:
- migrate
- never # Don't run by default in development