Run monerod
using Docker.
This image clones https://github.com/monero-project/monero
and builds it according to instructions.
Append any monerod
params after the image name. i.e:
docker run -it --rm lchaia/monerod --help
The blockchain will get downloaded at /home/monero/.bitmonero
, so you should
volume-map that path for persistance
If experiencing permission issues on the volume-mapped folder these can be solved with a chown like below:
docker run -it --rm -v /etc/monero-blockchain:/home/monero/.bitmonero \
--entrypoint chown --user root lchaia/monerod monero:monero -R /home/monero/.bitmonero
You'll need to modify it for your environment
version: "3"
services:
monerod:
image: lchaia/monerod:v0.16.0.0 # or latest and use watchtower
container_name: monerod
volumes:
- /etc/monero-blockchain:/home/monero/.bitmonero
ports:
- 18080:18080
- 18089:18089
command:
- "--non-interactive"
- "--restricted-rpc"
- "--rpc-bind-ip=0.0.0.0"
- "--rpc-bind-port=18089"
- "--confirm-external-bind"
- "--max-concurrency=4"
- "--public-node"
Code from this repository is released under MIT license. Monero License
Please consider donating to Monero