yellow-platform / blockchain-node

The repo of the Yellow blockchain node running inside the Yellow Coworking space
3 stars 0 forks source link

Add in Electrum node for bitcoin #2

Open nolim1t opened 4 years ago

nolim1t commented 4 years ago

Add in Electrum node as this supports a lot of light client (bitcoin) implementations and further helps with decentralization.

NicolasMahe commented 4 years ago

I will be happy to start it if you could come up with the docker command to run it with the right config ;) something like: https://github.com/yellow-platform/blockchain-node/blob/master/setup.md#bitcoin-mainnet

docker run --detach \
  --name bitcoind-lncm-mainnet \
  --mount type=volume,source=bitcoind-lncm-mainnet,destination=/root/.bitcoin \
  --publish 8332:8332 \
  --publish 8333:8333 \
  --publish 28332:28332 \
  --publish 28333:28333 \
  --restart=always \
  --label "traefik.rpc.backend=bitcoind-lncm-mainnet" \
  --label "traefik.rpc.frontend.rule=Host:bitcoin.blockchain.yellow.com" \
  --label "traefik.rpc.port=8332" \
  --label "traefik.docker.network=web" \
  --network web \
  lncm/bitcoind:v0.19.0.1
nolim1t commented 4 years ago

Looks correct but for volume -v I think it is better of defining them explicitly.

docker run -it --rm \
    -v ~/.bitcoin:/root/.bitcoin \
    -v ~/.bitcoin:/data/.bitcoin \
    -v ~/.bitcoin:/data/.bitcoin \
    -p 8332:8332 \
    -p 8333:8333 \
    -p 28332:28332 \
    -p 28333:28333 \
    --name bitcoind \
    --detach \
    lncm/bitcoind:v0.19.0.1

Or just build a compose file which is easier to define and version control.

You may start by looking at this one.

Tip. If you run the install and configure script, it will set up lightning and bitcoind out of the box