Skip to content

Commit 2c0d3f5

Browse files
Update docker-compose.yml
1 parent 10a3af9 commit 2c0d3f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
version: "3.9"
2-
32
services:
43
recodehive:
54
build:
@@ -8,8 +7,8 @@ services:
87
- "3000:3000"
98
volumes:
109
- .:/app
11-
- /app/node_modules
10+
- /app/node_modules # Prevents node_modules being overwritten by the mount
1211
working_dir: /app
13-
command: npm run start
12+
command: npm run dev # THIS is the crucial change for hot-reload!
1413
environment:
1514
- NODE_ENV=development

0 commit comments

Comments
 (0)