Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 2.22 KB

docker.md

File metadata and controls

51 lines (35 loc) · 2.22 KB

Setting up Spark with Docker

You can use Docker To setup Spark, a groestlcoind node and a c-lightning node all in go with the following command:

$ docker run -it -v ~/.spark-docker:/data -p 9737:9737 \
             groestlcoin/groestlcoin-spark --login bob:superSecretPass456

You will then be able to access the Spark wallet at https://localhost:9737.

Runs in testnet mode by default, set NETWORK to override (e.g. -e NETWORK=groestlcoin).

Data files will be stored in ~/.spark-docker/{groestlcoin,lightning,spark}. You can set Spark's configuration options in ~/.spark-docker/spark/config.

When starting for the first time, you'll have to wait for the groestlcoin node to sync up. You can check the progress by tailing ~/.spark-docker/groestlcoin/debug.log.

You can set custom command line options for groestlcoind with BITCOIND_OPT and for lightningd with LIGHTNINGD_OPT.

Note that TLS will be enabled by default (even without changing --host). You can use --no-tls to turn it off.

With existing lightningd

To connect to an existing lightningd instance running on the same machine, mount the lightning data subdirectory for the network (e.g. ~/.lightning/groestlcoin) into /etc/lightning:

$ docker run -it -v ~/.spark-docker:/data -p 9737:9737 \
             -v ~/.lightning/groestlcoin:/etc/lightning \
             groestlcoin/groestlcoin-spark:standalone

Note the :standalone version for the docker image, which doesn't include bitcoind's/lightningd's binaries and weights about 60MB less.

Connecting to remote lightningd instances is currently not supported.

With existing groestlcoind, but with bundled lightningd

To connect to an existing groestlcoind instance running on the same machine, mount the groestlcoin data directory to /etc/groestlcoin (e.g. -v ~/.groestlcoin:/etc/groestlcoin), and either use host networking (--network host) or specify the IP where groestlcoind is reachable via BITCOIND_RPCCONNECT. The RPC credentials and port will be read from groestlcoind's config file.

To connect to a remote groestlcoind instance, set BITCOIND_URI=http://[user]:[pass]@[host]:[port] (or use __cookie__:... as the login for cookie-based authentication).