Example showing how to deploy and configure a Kubo node to fly.io
Watch video deployment tutorial on YouTube
git clone [email protected]:2color/ipfs-deploy-flyio.git
cd ipfs-deploy-flyio
fly launch --copy-config
Give the app a name when promoted. Do not deploy the app yet if asked.
fly volumes create ipfs_data --size 20
To ensure that the Kubo node is deployed with the updated configuration,
fly deploy
ipfs-config.sh
To get the IPv4 of the container, run the following command:
fly ips list
Open ipfs-config.sh
, uncomment the last line, and add the IPv4 from the step above:
ipfs config --json Addresses.AppendAnnounce '["/ip4/[ADD_IP_V4_HERE]/tcp/4001"]'
To ensure that the Kubo node is deployed with the updated configuration,
fly deploy
To open a proxy to the Kubo node, run the following command:
fly proxy 5001:5001
Run the ipfs CLI against the deployed Kubo node:
ipfs id --api /ip4/127.0.0.1/tcp/5001/
To increase the memory allocated (which by default is 256):
fly scale memory 512