diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index 05bb2af..1c99182 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -327,6 +327,18 @@ server { proxy_pass http://clightning_bitcoin_charge:9112/; } {{ end }} + {{ if (eq $serviceName "clightning_groestlcoin_spark") }} + location /spark/grs/ { + proxy_pass http://clightning_groestlcoin_spark:9739/; + } + {{ end }} + {{ if (eq $serviceName "clightning_groestlcoin_charge") }} + location /lightning-charge/grs/ { + proxy_pass http://clightning_groestlcoin_charge:9112/; + } + {{ end }} + + {{ end }} } diff --git a/docker-compose-generator/docker-fragments/groestlcoin-clightning.yml b/docker-compose-generator/docker-fragments/groestlcoin-clightning.yml new file mode 100644 index 0000000..62ee3cb --- /dev/null +++ b/docker-compose-generator/docker-fragments/groestlcoin-clightning.yml @@ -0,0 +1,73 @@ +version: "3" + +services: + clightning_groestlcoin: + image: groestlcoin/lightning:v0.6.2-2 + stop_signal: SIGKILL + container_name: btcpayserver_clightning_groestlcoin + restart: unless-stopped + environment: + LIGHTNINGD_NETWORK: ${NBITCOIN_NETWORK:-regtest} + LIGHTNINGD_CHAIN: grs + LIGHTNINGD_EXPLORERURL: "http://nbxplorer:32838/" + LIGHTNINGD_OPT: | + bitcoin-datadir=/etc/groestlcoin + bitcoin-rpcconnect=groestlcoind + bitcoin-rpcport=43782 + log-level=debug + announce-addr=${BTCPAY_HOST}:9738 + bind-addr=0.0.0.0:9735 + network=${NBITCOIN_NETWORK:-regtest} + alias=${LIGHTNING_ALIAS} + volumes: + - "clightning_groestlcoin_datadir:/root/.lightning" + - "groestlcoin_datadir:/etc/groestlcoin" + - "nbxplorer_datadir:/root/.nbxplorer" + ports: + - "9738:9735" + links: + - nbxplorer + - groestlcoind + clightning_groestlcoin_charge: + image: groestlcoin/groestlcoin-lightning-charge:version-0.4.6 + restart: unless-stopped + environment: + NETWORK: ${NBITCOIN_NETWORK:-regtest} + COOKIE_FILE: /data/.cookie + URL: ${BTCPAY_ROOTPATH:-/}lightning-charge/grs/ + volumes: + - "clightning_groestlcoin_datadir:/etc/lightning" + - "clightning_groestlcoin_charge:/data" + expose: + - "9112" + links: + - clightning_groestlcoin + btcpayserver: + environment: + BTCPAY_GRSLIGHTNING: "type=clightning;server=unix://etc/clightning_groestlcoin/lightning-rpc" + BTCPAY_GRSEXTERNALSPARK: "server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}${BTCPAY_ROOTPATH:-/}spark/grs;cookiefile=/etc/clightning_groestlcoin_spark/.cookie" + BTCPAY_GRSEXTERNALCHARGE: "server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}${BTCPAY_ROOTPATH:-/}lightning-charge/grs/;cookiefilepath=/etc/clightning_groestlcoin_charge/.cookie" + volumes: + - "clightning_groestlcoin_datadir:/etc/clightning_groestlcoin" + - "clightning_groestlcoin_spark:/etc/clightning_groestlcoin_spark" + - "clightning_groestlcoin_charge:/etc/clightning_groestlcoin_charge" + links: + - clightning_groestlcoin + clightning_groestlcoin_spark: + image: groestlcoin/groestlcoin-spark:version-0.2.2 + stop_signal: SIGKILL + restart: unless-stopped + environment: + NETWORK: ${NBITCOIN_NETWORK:-regtest} + SPARK_OPT: --no-tls --port 9739 -C /data/.cookie + volumes: + - "clightning_groestlcoin_datadir:/etc/lightning" + - "clightning_groestlcoin_spark:/data" + links: + - clightning_groestlcoin + expose: + - "9739" +volumes: + clightning_groestlcoin_datadir: + clightning_groestlcoin_charge: + clightning_groestlcoin_spark: diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 4e6f387..ef99dea 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/docker-compose-generator/src/CryptoDefinition.cs @@ -64,7 +64,8 @@ namespace DockerGenerator new CryptoDefinition() { Crypto = "grs", - CryptoFragment = "groestlcoin" + CryptoFragment = "groestlcoin", + CLightningFragment = "groestlcoin-clightning", }, new CryptoDefinition() { diff --git a/groestlcoin-lightning-cli.ps1 b/groestlcoin-lightning-cli.ps1 new file mode 100644 index 0000000..5c7e2e1 --- /dev/null +++ b/groestlcoin-lightning-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_clightning_groestlcoin lightning-cli $args diff --git a/groestlcoin-lightning-cli.sh b/groestlcoin-lightning-cli.sh new file mode 100644 index 0000000..ceb9947 --- /dev/null +++ b/groestlcoin-lightning-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_clightning_groestlcoin lightning-cli "$@"