Skip to content

Commit 2fd22e9

Browse files
committed
Do not expose generated dev docker site to the internet
By default, published docker ports "bind" to all inbound addresses. We restrict to localhost to avoid exposing the site to the internet. Note that malicious same L2 participants can still reach the container due to: moby/moby#45610
1 parent 272eaba commit 2fd22e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ services:
44
jekyll:
55
build: .
66
ports:
7-
- '4000:4000'
7+
- '127.0.0.1:4000:4000'
88
volumes:
99
- .:/srv/jekyll:ro

0 commit comments

Comments
 (0)