This Dockerfile provides a convenient way to run a Monero node using your own copy of the blockchain. It gives you complete control over your Monero node.
Running a Monero node locally offers several benefits, including:
- Increased privacy: By using your own copy of the blockchain, you can ensure that your transactions are not being monitored by external nodes.
- Faster synchronization: With a local copy of the blockchain, you don't have to rely on external nodes for synchronization, resulting in faster and more reliable syncing.
- Custom configurations: You have complete control over the configuration of your Monero node, allowing you to tailor it to your specific needs.
Note
You can also run the Docker image on a NAS (Network Attached Storage) to maintain a synchronized blockchain at all times.
To build the Monero node Docker image, follow these steps:
-
Clone the Monero node repository:
git clone https://github.com/ds160/monero-node.git
-
Navigate into the cloned directory:
cd monero-node
-
Build the Docker image:
docker build -t monero-node .
-
Run the Docker container:
docker run -d --name monero-node -p 18080:18080 -p 18081:18081 -v ${PWD}/path/to/store/blockchain:/root/.bitmonero monero-node
This command starts the Monero node container, exposes the necessary ports for communication, and stores the blockchain at the specified path.
-
Verify that the node is running:
docker logs monero-node
You should see logs indicating that the node has successfully started.
That's it! You now have a Monero node running locally with your own copy of the blockchain.
To create and connect a Monero GUI Wallet to your locally running Monero node in Advanced mode, follow these steps:
-
Open the Monero GUI Wallet on your computer.
-
Click on the Change wallet mode button on the Welcome page.
-
On the mode Selection page, select Advanced mode.
-
Back on the Welcome page, click on the Create a new wallet button.
-
Choose a name and location for your wallet. Click Next to proceed.
-
Write down your recovery seed and click Next.
-
Verify your recovery phrase, select Next.
-
Give your wallet a strong password and confirm it. Click Next to proceed.
-
Connect to a remote node and add the remote node with following information:
- Address: The IP address or hostname of your NAS or
localhost
. - Port:
18081
(or the port you have mapped on your NAS).
Click Next.
- Address: The IP address or hostname of your NAS or
-
Check the configuration and click Create wallet.
-
Enter your wallet password to unlock the wallet.
Congratulations! You have successfully connected the Monero GUI Wallet to your running Monero node.