Installing a BTCPay server with Docker

I was going to write a nice tutorial on how to do this, but in the time since I installed my BTCPay server, the BTCPay project has created an amazing github tutorial that is much better than I could do. So, instead, I am going to add a short video that explains what BTCPay server is, and link to their stellar tutorial so you can refer to it to set up your own BTCPay server.

BTCPay Server resources

Github Docker Tutorial

BTCPay Documentation

BTCPay Chat (for support)

BTCPay Telegram group (for support)

BTCPay Youtube Channel (for video tutorials & info)

Basic Dockerfile example for BTCPay

# Login as root
sudo su -

# Create a folder for BTCPay
mkdir BTCPayServer
cd BTCPayServer

# Clone this repository
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker

# Run btcpay-setup.sh with the right parameters
export BTCPAY_HOST="btcpay.EXAMPLE.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-s"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_LIGHTNING="clightning"
export BTCPAY_ENABLE_SSH=true
. ./btcpay-setup.sh -i

exit

BTCPay’s docker file has a bunch of environment variables available, which are listed on Github, that let you add functionality for additional coins (like I did with XMR) or to add on additional services. For example, I have also added an Electrum personal server (a private backend for my Electrum wallet which uses my Bitcoin node to verify transactions) & Librepatron instance (self-hosted Bitcoin Patreon alternative).

If you’d like to support my work

You can donate here with Bitcoin, Lightning Network, or Monero
https://runfox.tk/wp/product/donate-bitcoin-onchain-lightning-network-or-monero/

Or you can donate to my crowdfund with Bitcoin, Lightning Network, or Monero:
https://cipherassetanalysis.com/apps/4VKDJ6Yjsg24F2otzXmFv1rBzZPJ/crowdfund

You can also become a monthly Librepatron, with Bitcoin, Lightning Network, or Monero:
https://libre.cipherassetanalysis.com/

Leave a Reply

Your email address will not be published. Required fields are marked *