ElementsProject / lightning-charge

A simple drop-in solution for accepting lightning payments
MIT License
554 stars 80 forks source link

Unable to run Docker with existing bitcoind/lightningd #87

Open freerko opened 2 years ago

freerko commented 2 years ago

Hi,

as running lightning-charge directly doesn't work for me (see https://github.com/ElementsProject/lightning-charge/issues/86), I tried to run it via Docker. My existing c-lightning lives in /root/.lightning and Bitcoin in /var/lib/bitcoin on the same server, so I guess I have to run it like this:

root@server:~/lightning-charge# docker run -it -u id -u -v /root/.lightning:/data/lightning -v /var/lib/bitcoin:/data/bitcoin -p 9112:9112 shesek/lightning-charge --api-token MySecretToken

This just gives me this error, does it try to start an additional bitcoind, so it is not possible to run lightning-charge Docker with an bitcoind running outside of the Docker, it has to start it itself?

Starting bitcoind... waiting for RPC... Error: Config setting for -addnode only applied on test network when in [test] section.`

Inside of the container I can see that my existing bitcoind and c-lightning directories are available at /data/bitcoin and /data/lightning.