@cryptotaxi247 / kubo / commits / 07d11ab01

fix: listen on loopback for API and gateway ports in docker-compose.yaml (#8773)

(cherry picked from commit 816a128aaf963d72c4930852ce32b9a4e31924a1)

Gus Eggert committed Mar 9, 2022 at 10:31 UTC 07d11ab01154a0206e99da5244152484873694a9
1 file changed +10 -3
docker-compose.yaml
+10 -3
@@ -10,11 +10,18 @@ services:
10 environment:
11 - IPFS_PATH=/data/ipfs
12 ports:
13 + # Swarm listens on all interfaces, so is remotely reachable.
14 - 4001:4001/tcp
15 - 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
25 volumes:
26 ipfs_path:
27 ipfs_fuse: