Skip to content

Commit 143a162

Browse files
authored
Merge pull request #726 from sheikhlimon/chore/fix-docusaurus-host
chore: bind Docusaurus dev server to 0.0.0.0 for cross-platform Docker
2 parents 1bf6b99 + 08cc6c9 commit 143a162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: "3.9"
22
services:
33
recodehive:
4-
build:
4+
build:
55
context: .
66
ports:
77
- "3000:3000"
88
volumes:
99
- .:/app
10-
- /app/node_modules # Prevents node_modules being overwritten by the mount
10+
- /app/node_modules # Prevents node_modules being overwritten by the mount
1111
working_dir: /app
12-
command: npm run dev # THIS is the crucial change for hot-reload!
12+
command: npm run dev -- --host 0.0.0.0 # THIS is the crucial change for hot-reload!
1313
environment:
1414
- NODE_ENV=development

0 commit comments

Comments
 (0)