Skip to content

Commit 816a128

Browse files
authored
fix: listen on loopback for API and gateway ports in docker-compose.yaml (#8773)
1 parent be3dbc2 commit 816a128

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docker-compose.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ services:
1010
environment:
1111
- IPFS_PATH=/data/ipfs
1212
ports:
13+
# Swarm listens on all interfaces, so is remotely reachable.
1314
- 4001:4001/tcp
1415
- 4001:4001/udp
15-
- 5001:5001
16-
- 8080:8080
17-
- 8081:8081
16+
17+
# The following ports only listen on the loopback interface, so are not remotely reachable by default.
18+
# If you want to override these or add more ports, see https://docs.docker.com/compose/extends/ .
19+
20+
# API port, which includes admin operations, so you probably don't want this remotely accessible.
21+
- 127.0.0.1:5001:5001
22+
23+
# HTTP Gateway
24+
- 127.0.0.1:8080:8080
1825
volumes:
1926
ipfs_path:
2027
ipfs_fuse:

0 commit comments

Comments
 (0)