diff --git a/bitcore-cli.ps1 b/bitcore-cli.ps1 new file mode 100755 index 0000000..49bec2e --- /dev/null +++ b/bitcore-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_bitcored bitcore-cli -datadir="/data" $args diff --git a/bitcore-cli.sh b/bitcore-cli.sh new file mode 100755 index 0000000..1eb73fa --- /dev/null +++ b/bitcore-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_bitcored bitcore-cli -datadir="/data" "$@" diff --git a/btcpay-setup.sh b/btcpay-setup.sh index 54c7e83..3552783 100755 --- a/btcpay-setup.sh +++ b/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) diff --git a/docker-compose-generator/docker-fragments/bitcore.yml b/docker-compose-generator/docker-fragments/bitcore.yml new file mode 100644 index 0000000..db6d860 --- /dev/null +++ b/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: diff --git a/docker-compose-generator/docker-fragments/opt-save-storage-s.yml b/docker-compose-generator/docker-fragments/opt-save-storage-s.yml index d4dd57e..839d1eb 100644 --- a/docker-compose-generator/docker-fragments/opt-save-storage-s.yml +++ b/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 diff --git a/docker-compose-generator/docker-fragments/opt-save-storage-xs.yml b/docker-compose-generator/docker-fragments/opt-save-storage-xs.yml index a413ccc..7842263 100644 --- a/docker-compose-generator/docker-fragments/opt-save-storage-xs.yml +++ b/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 diff --git a/docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml b/docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml index 30456bd..240b54e 100644 --- a/docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml +++ b/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 diff --git a/docker-compose-generator/docker-fragments/opt-save-storage.yml b/docker-compose-generator/docker-fragments/opt-save-storage.yml index 72dbe25..52695d6 100644 --- a/docker-compose-generator/docker-fragments/opt-save-storage.yml +++ b/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 diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 4825ec3..5aa92fe 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/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",