Browse Source

Add BTX support

feature/auto_ssh
David B 6 years ago
committed by David
parent
commit
a5137f7100
  1. 1
      bitcore-cli.ps1
  2. 3
      bitcore-cli.sh
  3. 2
      btcpay-setup.sh
  4. 34
      docker-compose-generator/docker-fragments/bitcore.yml
  5. 3
      docker-compose-generator/docker-fragments/opt-save-storage-s.yml
  6. 3
      docker-compose-generator/docker-fragments/opt-save-storage-xs.yml
  7. 3
      docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml
  8. 3
      docker-compose-generator/docker-fragments/opt-save-storage.yml
  9. 5
      docker-compose-generator/src/CryptoDefinition.cs

1
bitcore-cli.ps1

@ -0,0 +1 @@
docker exec -ti btcpayserver_bitcored bitcore-cli -datadir="/data" $args

3
bitcore-cli.sh

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -ti btcpayserver_bitcored bitcore-cli -datadir="/data" "$@"

2
btcpay-setup.sh

@ -52,7 +52,7 @@ Environment variables:
LETSENCRYPT_EMAIL: A mail will be sent to this address if certificate expires and fail to renew automatically (eg. me@example.com)
NBITCOIN_NETWORK: The type of network to use (eg. mainnet, testnet or regtest. Default: mainnet)
LIGHTNING_ALIAS: An alias for your lightning network node if used
BTCPAYGEN_CRYPTO1: First supported crypto currency (eg. btc, ltc, btg, grs, ftc, via, doge, mona, none. Default: btc)
BTCPAYGEN_CRYPTO1: First supported crypto currency (eg. btc, ltc, btx, btg, grs, ftc, via, doge, mona, none. Default: btc)
BTCPAYGEN_CRYPTO2: Second supported crypto currency (Default: empty)
BTCPAYGEN_CRYPTON: N th supported crypto currency where N is maximum at maximum 9. (Default: none)
BTCPAYGEN_REVERSEPROXY: Whether to use or not a reverse proxy. NGinx setup HTTPS for you. (eg. nginx, traefik, none. Default: nginx)

34
docker-compose-generator/docker-fragments/bitcore.yml

@ -0,0 +1,34 @@
version: "3"
services:
bitcored:
restart: unless-stopped
container_name: btcpayserver_bitcored
image: dalijolijo/docker-bitcore:0.15.2
environment:
BITCOIN_EXTRA_ARGS: |
rpcport=43782
${NBITCOIN_NETWORK:-regtest}=1
port=39388
whitelist=0.0.0.0/0
expose:
- "43782"
- "39388"
volumes:
- "bitcore_datadir:/data"
nbxplorer:
environment:
NBXPLORER_CHAINS: "btx"
NBXPLORER_BTXRPCURL: http://bitcored:43782/
NBXPLORER_BTXNODEENDPOINT: bitcored:39388
links:
- bitcored
volumes:
- "bitcore_datadir:/root/.bitcore"
btcpayserver:
environment:
BTCPAY_BTXEXPLORERURL: http://nbxplorer:32838/
BTCPAY_CHAINS: "btx"
volumes:
bitcore_datadir:

3
docker-compose-generator/docker-fragments/opt-save-storage-s.yml

@ -6,6 +6,9 @@ services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: prune=50000
bitcored:
environment:
BITCOIN_EXTRA_ARGS: prune=50000
bgoldd:
environment:
BITCOIN_EXTRA_ARGS: prune=50000

3
docker-compose-generator/docker-fragments/opt-save-storage-xs.yml

@ -6,6 +6,9 @@ services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: prune=25000
bitcored:
environment:
BITCOIN_EXTRA_ARGS: prune=25000
bgoldd:
environment:
BITCOIN_EXTRA_ARGS: prune=25000

3
docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml

@ -6,6 +6,9 @@ services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: prune=5000
bitcored:
environment:
BITCOIN_EXTRA_ARGS: prune=5000
bgoldd:
environment:
BITCOIN_EXTRA_ARGS: prune=5000

3
docker-compose-generator/docker-fragments/opt-save-storage.yml

@ -6,6 +6,9 @@ services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: prune=100000
bitcored:
environment:
BITCOIN_EXTRA_ARGS: prune=100000
bgoldd:
environment:
BITCOIN_EXTRA_ARGS: prune=100000

5
docker-compose-generator/src/CryptoDefinition.cs

@ -46,6 +46,11 @@ namespace DockerGenerator
LNDFragment = "bitcoin-lnd"
},
new CryptoDefinition()
{
Crypto = "btx",
CryptoFragment = "bitcore",
},
new CryptoDefinition()
{
Crypto = "btg",
CryptoFragment = "bgold",

Loading…
Cancel
Save