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
cd btcpayserver-docker

# Run with the right parameters
export BTCPAY_HOST=""
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-s"
export BTCPAYGEN_LIGHTNING="clightning"
. ./ -i


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

Or you can donate to my crowdfund with Bitcoin, Lightning Network, or Monero:

You can also become a monthly Librepatron, with Bitcoin, Lightning Network, or Monero:

Leave a Reply

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