-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (34 loc) · 873 Bytes
/
docker-compose.dev.yml
File metadata and controls
36 lines (34 loc) · 873 Bytes
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:
frontend:
build:
context: ./frontend
target: development
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- ./frontend/package.json:/app/package.json
- ./frontend/tests:/app/tests
environment:
- CHOKIDAR_USEPOLLING=true # Helps with hot reload in Docker
depends_on:
- backend
backend:
build:
context: ./backend
target: development
ports:
- "5000:8080"
volumes:
- ./backend:/app
# Preserve compiled output so dotnet watch doesn't rebuild from scratch on every start
- backend_obj:/app/obj
- backend_bin:/app/bin
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
- DOTNET_USE_POLLING_FILE_WATCHER=1
volumes:
backend_obj:
backend_bin: