Browse Source

Merge pull request #78 from Kukks/grs-clightning

Add GRS Clightning + spark + charge
feature/auto_ssh
Nicolas Dorier 6 years ago
committed by GitHub
parent
commit
0768479f1f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Production/nginx.tmpl
  2. 73
      docker-compose-generator/docker-fragments/groestlcoin-clightning.yml
  3. 3
      docker-compose-generator/src/CryptoDefinition.cs
  4. 1
      groestlcoin-lightning-cli.ps1
  5. 3
      groestlcoin-lightning-cli.sh

12
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 }}
}

73
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:

3
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()
{

1
groestlcoin-lightning-cli.ps1

@ -0,0 +1 @@
docker exec -ti btcpayserver_clightning_groestlcoin lightning-cli $args

3
groestlcoin-lightning-cli.sh

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -ti btcpayserver_clightning_groestlcoin lightning-cli "$@"
Loading…
Cancel
Save