BTCPay Server installs with one Docker script from the btcpayserver-docker repository. You set a few variables, source the script and register the first account.
Last updated: · 8 min read
Quick answer
How to install BTCPay Server on a VPS?
To install BTCPay Server on a VPS, point a domain at the server, open TCP ports 80 and 443, clone btcpayserver-docker, export BTCPAY_HOST and the chain variables, then source btcpay-setup.sh. The docs ask for 2 virtual cores and 4 GB of RAM. Blockgilt sizes Gilt for it: 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month.
In brief
The official install is a Docker script from btcpayserver-docker, sourced as root.
The docs ask for 2 vCPU, 4 GB of RAM and 50 GB of SSD for a pruned Bitcoin-only install.
Ports 80 and 443 must be open and a domain must point to the VPS.
opt-save-storage-xs keeps about 25 GB of blocks; pruning excludes txindex, ElectrumX and mempool.
Gilt costs $12.61 a month on 12 months; Ingot costs $19.25 with Monero.
Update with btcpay-update.sh and back up with btcpay-backup.sh.
What does BTCPay Server need on a VPS?
BTCPay Server requirements from its documentation, with the Blockgilt plan that meets them
In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC
Which VPS plan runs BTCPay Server?
Gilt runs BTCPay Server with a pruned Bitcoin node and Lightning, and Ingot adds the room for Monero.
The BTCPay server specifications page asks for 2 virtual cores, 4 GB of RAM and 50 GB of SSD as a bare minimum for a pruned Bitcoin-only install, and its storage formula adds 15 GB of chainstate to 10 GB of base system. Gilt’s 4 vCPU, 8 GB of RAM and 250 GB NVMe cover that with room to spare. According to Blockgilt’s sizing of 10 November 2026, a 15 GB chainstate plus the 25 GB block target of the xs profile uses about a sixth of Gilt’s disk, leaving the rest for the database, Lightning and growth. For Monero, BTCPay plans at least 250 GB in total, which fits Ingot. Read BTCPay Server VPS for the full sizing.
Running full or pruned nodes of any public blockchain is welcome on every plan, along with Lightning nodes, Electrum servers, block explorers and RPC endpoints you operate yourself.
How do you install BTCPay Server with Docker?
You clone the btcpayserver-docker repository as root, export the deployment variables and source btcpay-setup.sh -i.
The script installs Docker if it is missing, installs the repository’s pinned Docker Compose, stores the container environment in $BTCPAY_BASE_DIRECTORY/.env and registers a systemd service btcpayserver.service, so the stack restarts after a reboot. Replace the host name with your own domain before you run it. Use lnd instead of clightning if you prefer LND, and none to skip Lightning; on a pruned node, remember that the smallest profile is not recommended for Lightning.
Install BTCPay Server (Bitcoin, pruned, Core Lightning)
sudo su -
mkdir BTCPayServer
cd BTCPayServer
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker
export BTCPAY_HOST="btcpay.example.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_LIGHTNING="clightning"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-xs"
. ./btcpay-setup.sh -i
exit
How does pruning work in BTCPay Server?
Pruning in BTCPay Server is a fragment you add with BTCPAYGEN_ADDITIONAL_FRAGMENTS, and opt-save-storage-xs keeps roughly the last 25 GB of blocks.
The fragments are opt-save-storage (about 100 GB), opt-save-storage-s (50 GB), opt-save-storage-xs (25 GB) and opt-save-storage-xxs (about 5 GB, not recommended for Lightning). The targets are not hard limits. Pruning is incompatible with opt-txindex, ElectrumX and the bundled mempool service, so any of those need an unpruned node. Initial synchronization of a full node takes between one and five days according to the BTCPay FAQ; a pruned install still downloads the whole chain once. For the general idea see how to run a pruned Bitcoin node. Before you open the store to customers, read how to secure a VPS for a crypto node or bot.
How do you check, update and back up BTCPay Server?
Check the chain with bitcoin-cli.sh getblockchaininfo, update with btcpay-update.sh and back up with btcpay-backup.sh as root.
btcpay-update.sh is run as root and updates the repository and the stack. The backup script archives Docker volumes, generated secrets and database dumps, leaves out blockchain data that can be downloaded again, and keeps LND’s wallet and channel.backup when present. The BTCPay documentation warns that old Lightning channel state is dangerous: broadcasting a revoked state can cost you all funds in the channel, so a nightly snapshot of a channel database is not a current backup. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS. Copy the archive to another machine. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.
Check, update and back up
sudo su -
bitcoin-cli.sh getblockchaininfo
btcpay-update.sh
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker"
./btcpay-backup.sh
Frequently asked questions
Do I need a domain for BTCPay Server?
Not for local or manually proxied setups, but the bundled automatic HTTPS needs a domain whose DNS points to the server and ports 80 and 443 open.
Can BTCPay Server run on a pruned node?
Yes. Add an opt-save-storage fragment. It cannot be combined with opt-txindex, ElectrumX or the bundled mempool.
Which Lightning implementation can I choose?
BTCPAYGEN_LIGHTNING accepts clightning, lnd, phoenixd or none. Switching later does not migrate wallets or channels.
How long does the first sync take?
The BTCPay FAQ says one to five days for a full Bitcoin node. Check getblockchaininfo before you accept payments.
Does Blockgilt hold my funds?
No. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.
Verdict
Blockgilt Gilt is the better choice if you install BTCPay for Bitcoin and Lightning with headroom: 8 GB of RAM is twice the 4 GB the docs ask for, at $12.61 a month.
Ingot is the better choice if the store also takes Monero, at $19.25 a month on 12 months.