forked from anumukul/Stellar-work-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
22 lines (22 loc) · 791 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
22 lines (22 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
services:
frontend:
build:
context: ./frontend
# Target the deps stage during development so we don't unnecessarily build the production app
target: deps
container_name: stellarwork-frontend
ports:
- "3000:3000"
volumes:
# Mount the local frontend directory to /app in the container for hot reloading
- ./frontend:/app
# Create anonymous volumes for node_modules and .next so they are managed by the container
# and not overridden by the mounted volume
- /app/node_modules
- /app/.next
command: npm run dev
environment:
- NODE_ENV=development
# Polling watch helps with hot reload when volume mounting in some docker environments
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true