I use this docker-compose file to create 2 users and I was able to make a payment over lightning on regtest. The tutorial was made with btcpayserver/bitcoin:0.18.0
.
Now I want to upgrade this image to the latest: btcpayserver/bitcoin:22.0-1
.
The lightning node cannot connect with this new bitcoin image:
Could not connect to bitcoind using bitcoin-cli. Is bitcoind running?
Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.
You can verify that your Bitcoin Core installation is ready for use by running:
$ bitcoin-cli -regtest -rpcconnect=alice-bitcoind:8335 echo 'hello world'
**BROKEN** plugin-bcli: Could not connect to bitcoind using bitcoin-cli.
Is bitcoind running? Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.
You can verify that your Bitcoin Core installation is ready for use by running:
$ bitcoin-cli -regtest -rpcconnect=alice-bitcoind:8335 echo 'hello world'
INFO plugin-bcli: Killing plugin: exited before we sent init
bitcoind is running.
What do I need to change in the parameters ?
The original docker-compose.yml file:
version: "3"
services:
alice-bitcoind:
container_name: alice-bitcoind
restart: always
image: btcpayserver/bitcoin:0.18.0
expose:
- "8335"
- "39389"
environment:
BITCOIN_NETWORK: regtest
BITCOIN_EXTRA_ARGS: |
rpcport=8335
rpcbind=0.0.0.0:8335
port=39389
addnode=bob-bitcoind:39388
volumes:
- "alice_bitcoind_data:/data"
bob-bitcoind:
container_name: bob-bitcoind
restart: always
image: btcpayserver/bitcoin:0.18.0
expose:
- "8336"
- "39388"
environment:
BITCOIN_NETWORK: regtest
BITCOIN_EXTRA_ARGS: |
rpcport=8336
rpcbind=0.0.0.0:8336
port=39388
addnode=alice-bitcoind:39389
volumes:
- "bob_bitcoind_data:/data"
alice-ln:
image: elementsproject/lightningd
container_name: alice-ln
command:
- --bitcoin-rpcconnect=alice-bitcoind:8335
- --network=regtest
- --alias=alice-ln
- --log-level=debug
environment:
EXPOSE_TCP: "true"
expose:
- "9735"
volumes:
- "alice_ln_datadir:/root/.lightning"
- "alice_bitcoind_data:/root/.bitcoin"
links:
- alice-bitcoind
bob-ln:
image: elementsproject/lightningd
container_name: bob-ln
command:
- --bitcoin-rpcconnect=bob-bitcoind:8336
- --network=regtest
- --alias=bob-ln
- --log-level=debug
environment:
EXPOSE_TCP: "true"
expose:
- "9736"
volumes:
- "bob_ln_datadir:/root/.lightning"
- "bob_bitcoind_data:/root/.bitcoin"
links:
- alice-bitcoind
volumes:
alice_bitcoind_data:
bob_bitcoind_data:
alice_ln_datadir:
bob_ln_datadir:
networks: {}