Skip to content

Instantly share code, notes, and snippets.

@AryanJ-NYC
Created March 30, 2020 00:47
Show Gist options
  • Save AryanJ-NYC/78c770f3e918d06e62301f1ebc6fba31 to your computer and use it in GitHub Desktop.
Save AryanJ-NYC/78c770f3e918d06e62301f1ebc6fba31 to your computer and use it in GitHub Desktop.
bitcoind:
restart: unless-stopped
container_name: btcpayserver_bitcoind
image: btcpayserver/bitcoin:0.19.0.1
environment:
BITCOIN_NETWORK: ${NBITCOIN_NETWORK:-regtest}
BITCOIN_WALLETDIR: "/walletdata"
BITCOIN_EXTRA_ARGS: |
rpcport=43782
rpcbind=0.0.0.0:43782
port=39388
whitelist=0.0.0.0/0
prune=5000
onion=tor:9050
# rpcuser=btcrpc
# rpcpassword=btcpayserver4ever
# We need to use rpcauth because we also need cookieauth. rpcpassword disabled cookie file auth.
# Be careful if you copy the line below from the docker-compose.yml! A dollar sign is escaped.
rpcauth=btcrpc:a6a5d29a3f44f02e4cd8cabb5b10a234$$ab6152915515f6a9cca806d2ab5f0e2794c346ba74f812c61e48241d523778b8
HIDDENSERVICE_NAME: BTC-P2P,BTC-RPC
BTC-P2P_HIDDENSERVICE_VIRTUAL_PORT: 8333
BTC-P2P_HIDDENSERVICE_PORT: 39388
BTC-RPC_HIDDENSERVICE_VIRTUAL_PORT: 8332
BTC-RPC_HIDDENSERVICE_PORT: 43782
expose:
- "43782"
- "39388"
volumes:
- "bitcoin_datadir:/data"
- "bitcoin_wallet_datadir:/walletdata"
- "tor_datadir:/home/tor/.tor"
links:
- tor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment