In this guide you will find instructions for the deployment of ipfs nodes using docker-compose . This implies that it will run on your local machine and you must have docker and docker compose installed.
Recommended hardware features for IPFS node:
|Recommended Hardware||On Mainnet-Omeg|
|RAM Memory||2 GB|
|Hard Disk||10 GB SSD|
It is necessary to enable the following network ports in the machine in which we are going to deploy the ipfs node:
4001: TCP – Port to establish Communication p2p with other peers.
5001: TCP – API Server.
8080: TCP – Gateway server.
For this installation we will use docker-compose. It is necessary to install docker and docker-compose on a local machine that will perform the installation of the node .
Following the instructions to install docker desktop in your local machine.
To configure and install IPFS node, you must clone this git repository in your local machine.
$ git clone https://github.com/LACNetNetworks/ipfs.git $ cd ipfs/docker/compose
IPFS_LOGGING: LOGGING – Level logging IPFS (INFO, DEBUG) – default INFO.
IPFS_SWARM_KEY_FILE: Path swarm key to private network.
IPFS_PATH: Path ipfs data.
LIBP2P_FORCE_PNET: Force private network.
$ docker-compose up -d
You can check if your IPFS node is connected to the network LACNet.
Check that the node has stablished the connections with the peers:
$ curl http://localhost:8080/ipfs/QmT7doZQU171dk3XmixagjVrT73dj8MP4XXqLj6EBTWyHA
You should get a result like this:
welcome to ipfs LACNet
Now you can check if the node is syncing blocks by getting the log:
$ docker logs -f $ docker logs ipfs-lacchain -f
If any of these two checks doesn’t work, try to restart the besu service: e.g.
$ docker-compose stop $ docker-compose up -d