Skip to content

Commit 5e3a9a0

Browse files
Update docker examples to bind ports for best practice (#2727)
1 parent 38d2039 commit 5e3a9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
volumes:
1818
- .:/webpacker-example-app
1919
ports:
20-
- '3035:3035'
20+
- '127.0.0.1:3035:3035'
2121
```
2222

2323
add nodejs and yarn as dependencies in Dockerfile,
@@ -56,7 +56,7 @@ then add the webpacker host name environment variable to the web/app service:
5656
volumes:
5757
- .:/usr/src/app
5858
ports:
59-
- "3000:3000"
59+
- "127.0.0.1:3000:3000"
6060
environment:
6161
- WEBPACKER_DEV_SERVER_HOST=webpacker
6262
```

0 commit comments

Comments
 (0)