-
Install docker -> https://docs.docker.com/install/
-
Install Go -> https://golang.org/doc/install
-
Install the swarm key generator
$ go get github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen
-
Generate a new private swam key
$ ipfs-swarm-key-gen > swarm.key
-
Generate ipfs data directories
$ mkdir -p ./ipfsData/ipfsA ./ipfsData/ipfsB ./ipfsData/ipfsC
-
Add your private swarm.key to the data directories
$ tee ./ipfsData/ipfsA/swarm.key ./ipfsData/ipfsB/swarm.key ./ipfsData/ipfsC/swarm.key < swarm.key
-
Start Ipfs instances
$ docker-compose up -d ipfsA ipfsB ipfsC
-
Get you machine IP and set it to a environment file
$ echo "HOST_IP=YOUR_MACHINE_IP" > .env
-
Start Ipfs cluster service
$ sudo docker-compose up clusterA clusterB clusterC
-
Notifications
You must be signed in to change notification settings - Fork 2
nshCore/ipfs-private-network
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Run a private IPFS network with docker
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published