IPFS

Best practices when using IPFS.

Deploy IPFS Infrastructure

Start IPFS (in a Docker container) NOTE: Create an executable file `start-ipfs.sh`
docker run
  -d
  --restart always
  --name ipfs_host
  -e IPFS_PROFILE=server
  -v $IPFS_STAGING:/export
  -v $IPFS_DATA:/data/ipfs
  -p 4001:4001
  -p 4001:4001/udp
  -p 127.0.0.1:8080:8080
  -p 127.0.0.1:5001:5001
  ipfs/kubo:latest
(optional) Mount to the Host System NOTE: Create an executable file `start-gateway.sh`
while true; do eval "$(cat /gateway/pipe)" &> /gateway/output; done