forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Kukks/master
Fix docker builder & add docker compose example
- Loading branch information
Showing
10 changed files
with
110 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
NETWORK=testnet | ||
LIGHTNING_ALIAS= | ||
HOST=127.0.0.1 | ||
SPARK_LOGIN=admin:admin | ||
SPARK_WALLET_PORT=9876 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Docker Compose Quickstart | ||
|
||
This is an example of how to run a GRS node, GRS c-lightning node and Spark wallet | ||
|
||
### Configuration & Running | ||
|
||
Ensure you have docker & docker-compose installed, edit the `.env` options to your liking and run `docker-compose up`. By default it will run testnet and spark wallet wil lbe available at `localhost:9876` (after GRS syncs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: "3" | ||
services: | ||
groestlcoind: | ||
restart: unless-stopped | ||
container_name: groestlcoind | ||
image: nicolasdorier/docker-groestlcoin:2.16.3 | ||
environment: | ||
GROESTLCOIN_EXTRA_ARGS: | | ||
rpcport=43782 | ||
${NETWORK:-regtest}=1 | ||
port=39388 | ||
whitelist=0.0.0.0/0 | ||
expose: | ||
- "43782" | ||
- "39388" | ||
volumes: | ||
- "./groestlcoin_datadir:/data" | ||
clightning_groestlcoin: | ||
image: kukks/grs-clightning:latest | ||
stop_signal: SIGKILL | ||
container_name: clightning_groestlcoin | ||
restart: unless-stopped | ||
environment: | ||
LIGHTNINGD_NETWORK: ${NETWORK:-regtest} | ||
LIGHTNINGD_OPT: | | ||
bitcoin-datadir=/etc/groestlcoin | ||
bitcoin-rpcconnect=groestlcoind | ||
bitcoin-rpcport=43782 | ||
log-level=debug | ||
announce-addr=${HOST}:9737 | ||
bind-addr=0.0.0.0:9735 | ||
network=${NETWORK:-regtest} | ||
alias=${LIGHTNING_ALIAS} | ||
volumes: | ||
- "clightning_groestlcoin_datadir:/root/.lightning" | ||
- "./groestlcoin_datadir:/etc/groestlcoin" | ||
ports: | ||
- "9735:9735" | ||
links: | ||
- groestlcoind | ||
clightning_groestlcoin_spark: | ||
image: shesek/spark-wallet | ||
container_name: clightning_groestlcoin_spark | ||
restart: unless-stopped | ||
environment: | ||
LOGIN: ${SPARK_LOGIN} | ||
PORT: ${SPARK_WALLET_PORT} | ||
links: | ||
- clightning_groestlcoin | ||
ports: | ||
- "9876:${SPARK_WALLET_PORT}" | ||
volumes: | ||
- "clightning_groestlcoin_datadir:/etc/lightning" | ||
|
||
volumes: | ||
clightning_groestlcoin_datadir: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker exec -ti groestlcoind groestlcoin-cli -datadir="/data" $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker exec -ti groestlcoind groestlcoin-cli -datadir="/data" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker exec -ti clightning_groestlcoin lightning-cli $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker exec -ti clightning_groestlcoin lightning-cli "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters