Skip to content

Commit

Permalink
Merge pull request #1 from christroutner/ct-unstable
Browse files Browse the repository at this point in the history
Updating start-ipfs.sh to open ports
  • Loading branch information
christroutner authored Aug 22, 2022
2 parents 58d16b3 + 9b5f68f commit b54dd7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: '3.9'

services:
trickle-ipfs:
image: christroutner/trickle-ipfs:v1.0.0
image: christroutner/trickle-ipfs:v1.0.1
#build:
# context: ./
# dockerfile: Dockerfile
Expand All @@ -26,8 +26,8 @@ services:
mem_limit: 1000mb
ports:
- 4001:4001
- 5001:5001
- 8080:8080
- 172.17.0.1:5001:5001
- 172.17.0.1:8080:8080
command: [
'./start-ipfs.sh'
]
Expand Down
9 changes: 9 additions & 0 deletions start-ipfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
# This bash script file starts IPFS with arguments passed from the
# docker compose file.

# Init if it hasn't been initialized yet.
ipfs init --profile=server

# Turn on websockets
ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/tcp/4001","/ip6/::/tcp/4001","/ip4/0.0.0.0/udp/4001/quic","/ip6/::/udp/4001/quic","/ip4/0.0.0.0/tcp/4003","/ip6/::/tcp/4003"]'

# Open the API and Gateway ports
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080

trickle -s -u $UPLOAD_KBPS -d $DOWNLOAD_KBPS ipfs daemon $IPFS_DAEMON_ARGUMENTS

0 comments on commit b54dd7d

Please sign in to comment.