Add LBTC and USDT support; (#240)
* Add LBTC and USDT support; Requires: https://github.com/btcpayserver/btcpayserver/pull/1118 https://github.com/dgarage/NBXplorer/pull/198 https://github.com/btcpayserver/dockerfile-deps/pull/10 * add elementsd cli scripts * simplify liquid integration btcpay liquid PR adds all sub assets in one go so in docker specifying LBTC is enough * bump images * rename properly * fix rpc * add pruning for liquid node * bump nbx * add liquid more-memory
This commit is contained in:
committed by
Nicolas Dorier
parent
574e9b47e6
commit
b5bf43bb0f
40
docker-compose-generator/docker-fragments/liquid.yml
Normal file
40
docker-compose-generator/docker-fragments/liquid.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
elementsd_liquid:
|
||||
restart: unless-stopped
|
||||
container_name: btcpayserver_elementsd_liquid
|
||||
image: btcpayserver/elements:0.18.1.1-1
|
||||
environment:
|
||||
ELEMENTS_NETWORK: ${NBITCOIN_NETWORK:-regtest}
|
||||
ELEMENTS_MAINNET_CHAIN: "liquidv1"
|
||||
ELEMENTS_WALLETDIR: "/walletdata"
|
||||
ELEMENTS_EXTRA_ARGS: |
|
||||
rpcport=43782
|
||||
rpcbind=0.0.0.0:43782
|
||||
rpcauth=liquid:c8bf1a8961d97f224cb21224aaa8235d$$402f4a8907683d057b8c58a42940b6e54d1638322a42986ae28ebb844e603ae6
|
||||
port=39388
|
||||
whitelist=0.0.0.0/0
|
||||
validatepegin=0
|
||||
expose:
|
||||
- "43782"
|
||||
- "39388"
|
||||
volumes:
|
||||
- "elements_datadir:/data"
|
||||
- "elements_wallet_datadir:/walletdata"
|
||||
nbxplorer:
|
||||
environment:
|
||||
NBXPLORER_CHAINS: "lbtc"
|
||||
NBXPLORER_LBTCRPCURL: http://elementsd_liquid:43782/
|
||||
NBXPLORER_LBTCNODEENDPOINT: elementsd_liquid:39388
|
||||
NBXPLORER_LBTCRPCUSER: "liquid"
|
||||
NBXPLORER_LBTCRPCPASSWORD: "liquid"
|
||||
volumes:
|
||||
- "elements_datadir:/root/.elements"
|
||||
btcpayserver:
|
||||
environment:
|
||||
BTCPAY_CHAINS: "lbtc"
|
||||
BTCPAY_LBTCEXPLORERURL: http://nbxplorer:32838/
|
||||
volumes:
|
||||
elements_datadir:
|
||||
elements_wallet_datadir:
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
|
||||
nbxplorer:
|
||||
restart: unless-stopped
|
||||
image: nicolasdorier/nbxplorer:2.1.5
|
||||
image: nicolasdorier/nbxplorer:2.1.7
|
||||
expose:
|
||||
- "32838"
|
||||
environment:
|
||||
|
||||
@@ -30,5 +30,9 @@ services:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: |
|
||||
dbcache=1024
|
||||
elementsd_liquid:
|
||||
environment:
|
||||
ELEMENTS_EXTRA_ARGS: |
|
||||
dbcache=1024
|
||||
exclusive:
|
||||
- memory
|
||||
@@ -28,6 +28,9 @@ services:
|
||||
environment:
|
||||
DOGECOIN_EXTRA_ARGS: prune=50000
|
||||
monacoind:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=50000
|
||||
elementsd_liquid:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=50000
|
||||
exclusive:
|
||||
|
||||
@@ -30,5 +30,8 @@ services:
|
||||
monacoind:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=25000
|
||||
elementsd_liquid:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=25000
|
||||
exclusive:
|
||||
- pruning
|
||||
@@ -30,5 +30,8 @@ services:
|
||||
monacoind:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=5000
|
||||
elementsd_liquid:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=5000
|
||||
exclusive:
|
||||
- pruning
|
||||
@@ -30,5 +30,8 @@ services:
|
||||
monacoind:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=100000
|
||||
elementsd_liquid:
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: prune=100000
|
||||
exclusive:
|
||||
- pruning
|
||||
@@ -99,6 +99,11 @@ namespace DockerGenerator
|
||||
{
|
||||
Crypto = "xmr",
|
||||
CryptoFragment = "monero"
|
||||
},
|
||||
new CryptoDefinition()
|
||||
{
|
||||
Crypto = "lbtc",
|
||||
CryptoFragment = "liquid"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user