diff --git a/bgold-cli.ps1 b/bgold-cli.ps1 new file mode 100755 index 0000000..2655d02 --- /dev/null +++ b/bgold-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_bgoldd bgold-cli -datadir="/data" $args diff --git a/bgold-cli.sh b/bgold-cli.sh new file mode 100755 index 0000000..e00a90c --- /dev/null +++ b/bgold-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_bgoldd bgold-cli -datadir="/data" "$@" diff --git a/docker-compose-generator/docker-fragments/bitcoingold.yml b/docker-compose-generator/docker-fragments/bitcoingold.yml new file mode 100644 index 0000000..fea87e4 --- /dev/null +++ b/docker-compose-generator/docker-fragments/bitcoingold.yml @@ -0,0 +1,33 @@ +version: "3" + +services: + bgoldd: + restart: always + container_name: btcpayserver_bgoldd + image: kamigawabul/docker-bitcoingold:0.15.0.2 + environment: + BITCOIN_EXTRA_ARGS: | + rpcport=43782 + ${NBITCOIN_NETWORK:-regtest}=1 + port=39388 + whitelist=0.0.0.0/0 + expose: + - "43782" + - "39388" + volumes: + - "bitcoingold_datadir:/data" + nbxplorer: + environment: + NBXPLORER_CHAINS: "btg" + NBXPLORER_BTGRPCURL: http://bgoldd:43782/ + NBXPLORER_BTGNODEENDPOINT: bgoldd:39388 + links: + - bgoldd + volumes: + - "bitcoingold_datadir:/root/.bitcoingold" + btcpayserver: + environment: + BTCPAY_CHAINS: "btg" + BTCPAY_BTGEXPLORERURL: http://nbxplorer:32838/ +volumes: + bitcoingold_datadir: \ No newline at end of file diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 7994dd1..4ad2d9d 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/docker-compose-generator/src/CryptoDefinition.cs @@ -38,7 +38,13 @@ namespace DockerGenerator CryptoFragment = "bitcoin", CLightningFragment = "bitcoin-clightning", }, - }; + new CryptoDefinition() + { + Crypto = "btg", + CryptoFragment = "bitcoingold", + CLightningFragment = null, + } + }; } } } diff --git a/docker-compose-generator/src/Properties/launchSettings.json b/docker-compose-generator/src/Properties/launchSettings.json index 114251a..a88e351 100644 --- a/docker-compose-generator/src/Properties/launchSettings.json +++ b/docker-compose-generator/src/Properties/launchSettings.json @@ -5,6 +5,7 @@ "commandLineArgs": "pregen", "environmentVariables": { "BTCPAYGEN_LIGHTNING": "clightning", + "BTCPAYGEN_CRYPTO3": "btg", "BTCPAYGEN_CRYPTO2": "ltc", "BTCPAYGEN_CRYPTO1": "btc", "BTCPAYGEN_REVERSEPROXY": "nginx"