Last active
July 20, 2019 14:47
-
-
Save learntheropes/25ef613d80b215a929affd210a2eea38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
captainVersion: 1 | |
instructions: | |
start: BTCPay Server is a self-hosted, open-source cryptocurrency payment processor. It's secure, private, censorship-resistant and free. https://btcpayserver.org/ | |
end: | | |
The bitcoin application is ready. | |
If you selected the testnet network, you can speed up the blockchain sync as follow | |
1. scale down to 0 bitcoind instance | |
2. download a blockchain snapshot here https://keybase.pub/coinfused/ | |
3. run ssh [email protected] "cd /var/lib/docker/volumes/captain--bitcoin-testnet-datadir/_data/testnet3 && tar -xzv" < /your/local/path/testnet.tar.gz | |
4. scale up the bitcoind instance to 1 or more | |
variables: | |
- id: $$cap_NETWORK | |
label: Network | |
defaultValue: testnet | |
validRegex: /^(mainnet|testnet|regtest)+$/ | |
- id: $$cap_DBCACHE | |
label: Dbcache | |
defaultValue: 50 | |
validRegex: /^([0-9])+$/ | |
- id: $$cap_MAXCONNECTIONS | |
label: Maxconnections | |
defaultValue: 3 | |
validRegex: /^([0-9])+$/ | |
- id: $$cap_MAXMEMPOOL | |
label: Maxmempool | |
defaultValue: 50 | |
validRegex: /^([0-9])+$/ | |
- id: $$cap_PRUNE | |
label: Prune | |
defaultValue: 50000 | |
validRegex: /^([0-9])+$/ | |
- id: $$cap_BITCOINDVERSION | |
label: Bitcoind version | |
defaultValue: 0.18.0 | |
validRegex: /^([0-9.]+)$/ | |
- id: $$cap_EXPLORERVERSION | |
label: Block explorer version | |
defaultValue: 2.0.0.55 | |
validRegex: /^([0-9.]+)$/ | |
dockerCompose: | |
version: 3 | |
volumes: | |
bitcoin-$$cap_NETWORK-datadir: | |
nbxplorer-$$cap_NETWORK-datadir: | |
services: | |
bitcoind-$$cap_NETWORK: | |
restart: unless-stopped | |
notExposeAsWebApp: true | |
image: btcpayserver/bitcoin:$$cap_BITCOINDVERSION | |
environment: | |
BITCOIN_NETWORK: $$cap_NETWORK | |
BITCOIN_EXTRA_ARGS: | | |
zmqpubrawblock=tcp://0.0.0.0:28332 | |
zmqpubrawtx=tcp://0.0.0.0:28333 | |
rpcauth=lnd:d031f7567c5b02ba95524170e51c77f4$$827ce5412f653d6613c2f480e521eb437c866b999bdeb2ee4f9c41d3b00dff1c | |
rpcport=43782 | |
rpcbind=0.0.0.0:43782 | |
port=39388 | |
disablewallet=1 | |
whitelist=0.0.0.0/0 | |
dbcache=$$cap_DBCACHE | |
maxconnections=$$cap_MAXCONNECTIONS | |
maxmempool=$$cap_MAXMEMPOOL | |
prune=$$cap_PRUNE | |
volumes: | |
- "bitcoin-$$cap_NETWORK-datadir:/data" | |
nbxplorer-$$cap_NETWORK: | |
restart: unless-stopped | |
notExposeAsWebApp: true | |
image: nicolasdorier/nbxplorer:$$cap_EXPLORERVERSION | |
environment: | |
NBXPLORER_CHAINS: "btc" | |
NBXPLORER_BTCRPCURL: http://srv-captain--bitcoind-$$cap_NETWORK:43782/ | |
NBXPLORER_BTCNODEENDPOINT: srv-captain--bitcoind-$$cap_NETWORK:39388 | |
NBXPLORER_NETWORK: $$cap_NETWORK | |
NBXPLORER_BIND: 0.0.0.0:32838 | |
NBXPLORER_SIGNALFILESDIR: /datadir | |
volumes: | |
- "bitcoin-$$cap_NETWORK-datadir:/root/.bitcoin" | |
- "nbxplorer-$$cap_NETWORK-datadir:/datadir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment