Skip to content

Commit

Permalink
fix: docker-compose RPC ports should only listen on loopback
Browse files Browse the repository at this point in the history
closes #520
  • Loading branch information
b5 committed Nov 18, 2022
1 parent 22a1426 commit a0f16d6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,29 @@ services:
- "IROH_GATEWAY__RPC_CLIENT__P2P_ADDR=grpc://iroh-p2p:4401"
- "IROH_GATEWAY__RPC_CLIENT__STORE_ADDR=grpc://iroh-store:4402"
ports:
# public HTTP gateway port. eg: http://localhost:9050/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
- "9050:9050"
- "4400:4400"
# RPC port, iroh CLI uses this to control your gateway service
# this shouldn't be publically accessible, so we explicitly wire it
# to the local loopback address: 127.0.0.1
- "127.0.0.1:4400:4400"
iroh-p2p:
container_name: "iroh-p2p"
image: "n0computer/iroh-p2p:latest"
environment:
- "IROH_P2P__RPC_CLIENT__STORE_ADDR=grpc://iroh-store:4402"
ports:
# libp2p connection port. peers will dial your node here
- "4401:4401"
- "4444:4444"
# RPC port, iroh CLI uses this to control your p2p service
# this shouldn't be publically accessible, so we explicitly wire it
# to the local loopback address: 127.0.0.1
- "127.0.0.1:4444:4444"
iroh-store:
container_name: "iroh-store"
image: "n0computer/iroh-store:latest"
ports:
- "4402:4402"
# RPC port, iroh CLI uses this to control your store service
# this shouldn't be publically accessible, so we explicitly wire it
# to the local loopback address: 127.0.0.1
- "127.0.0.1:4402:4402"

0 comments on commit a0f16d6

Please sign in to comment.