Mempool publishes Docker images of its frontend and backend. You run Bitcoin Core and an Electrum server yourself and point the backend at them.
Last updated: · 8 min read
Quick answer
How to self-host mempool.space?
To self-host mempool.space, run an unpruned Bitcoin Core with txindex=1 and RPC, run an Electrum server such as Fulcrum, clone the mempool repository, set the backend variables in docker/docker-compose.yml and run docker-compose up. Blockgilt sizes Sovereign for a private stack (8 vCPU, 32 GB RAM, 2 TB NVMe, 32 TB traffic, $105.08 a month) and Reserve (16 vCPU, 64 GB RAM, 4 TB NVMe, 48 TB traffic) for a production-size one.
In brief
The mempool Docker images contain only the frontend and the backend.
You run an unpruned Bitcoin Core with txindex=1 and, for addresses, an Electrum server.
Set MEMPOOL_BACKEND, the Core RPC variables and the Electrum variables in docker-compose.yml.
Run docker-compose up; the instance answers on port 80.
Node plus Fulcrum database need about 0.93 TB before the txindex.
The production guide asks for 20-core CPU, 64 GB RAM and 4 TB SSD; Reserve has the RAM and disk with 16 vCPU instead of 20 cores.
What does a self-hosted mempool.space need?
What a self-hosted mempool.space stack needs, from the mempool and Fulcrum documentation
Part
Requirement
Source
Bitcoin Core
Fully synced and unpruned, with txindex=1, server=1 and an RPC login
mempool Docker README
Electrum server
optional, but address lookups do not work without one; electrs or Fulcrum
mempool Docker README
Containers
only the frontend and the backend; the rest is yours
mempool Docker README
Block data
781.8 GB on 9 November 2026
blockchain.com
Node plus Fulcrum database
about 0.93 TB before the txindex
Blockgilt sizing
Sovereign
8 vCPU, 32 GB RAM, 2 TB NVMe, 32 TB traffic, $105.08 a month on 12 months
Blockgilt
Prices checked on
What are the steps to self-host mempool.space?
Order Sovereign or Bullion
Choose Sovereign if the VPS runs the node, the Electrum server and mempool together. Bullion works for a tighter budget with a single index. Reserve has the RAM and disk of mempool’s production guide.
Run Bitcoin Core with txindex
Add txindex=1, server=1 and an RPC login to bitcoin.conf. The Docker setup does not work with a pruned node.
Run an Electrum server
Install Fulcrum or electrs and let it index. Without it, address pages and balances are missing.
Install Docker and docker-compose
Follow Docker’s own installation guide for your distribution. The mempool README expects docker-compose.
Clone the mempool repository
The docker directory holds the Dockerfiles and the docker-compose.yml.
Edit the backend variables
Set MEMPOOL_BACKEND, the Core RPC host, port and login, and the Electrum host and port in the api environment.
Run docker-compose up
Start the stack and open the web address. Let the backend catch up before you rely on it.
Which Blockgilt plan fits?
Sovereign carries the node, Fulcrum and mempool with room to grow; Bullion fits a tighter stack; Reserve matches the RAM and disk of the production guide.
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 mempool.space?
Sovereign runs a full Bitcoin node, an Electrum server and the mempool stack together, and Bullion runs them with less headroom.
The mempool README says its default configuration assumes an unpruned node with txindex=1, so the chain must be on disk in full: 781.8 GB of blocks on 9 November 2026. Add 15 GB of chainstate and the Fulcrum database of 133 GB as its README gave in August 2023. According to Blockgilt’s sizing of 10 November 2026, that is about 0.93 TB before the txindex and the mempool database, neither of which the documentation sizes, so Sovereign’s 2 TB NVMe leaves about 1 TB free. The node is described in VPS for Bitcoin node and the index in Electrum server VPS.
The mempool production guide recommends 20-core CPU, 64 GB RAM and 4 TB SSD for the server that runs mempool.space itself, with more being better. Reserve has 16 vCPU, 64 GB of RAM and 4 TB NVMe, so its RAM and disk match that guide and it has 16 vCPU instead of 20 cores. Treat it as the nearest plan, not as an equivalent; for a private instance Sovereign is enough.
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. The disk size of your plan is the space your VPS gets, not a share of a pool, and it is not cut when the chain grows: you move to a larger plan when you need more room.
How do you prepare Bitcoin Core and the Electrum server?
Bitcoin Core needs txindex=1, server=1 and the RPC login the compose file expects, and the Electrum server must be running beside it.
The README’s default configuration uses the user mempool and the password mempool; use your own values and set the same ones in the compose file. Because the backend runs in a container, bitcoind must accept RPC connections from the Docker network: see the -rpcbind and -rpcallowip options in bitcoind’s help and expose them to nothing else, and keep the firewall closed. Install Fulcrum by following how to install Fulcrum, which uses the same txindex=1 node. For a first node, see how to run a Bitcoin node on a VPS.
How do you configure and start the mempool backend?
You edit the api environment of docker/docker-compose.yml and run docker-compose up.
The README lists the variables. MEMPOOL_BACKEND is "electrum" for romanz/electrs or Fulcrum, "esplora" for Blockstream/electrs, and "none" with no Electrum server. CORE_RPC_HOST and CORE_RPC_PORT point at Bitcoin Core, and the README’s example host is Docker’s default gateway address so the container can reach bitcoind on the host. CORE_RPC_USERNAME, CORE_RPC_PASSWORD and CORE_RPC_TIMEOUT set the login and the timeout. ELECTRUM_HOST, ELECTRUM_PORT and ELECTRUM_TLS_ENABLED reach the Electrum server. The README’s example shows port 50002; match the port your Electrum server listens on and set TLS to "false" for a plain local connection. Once started, the instance answers on port 80 of the host.
Get the stack
git clone https://github.com/mempool/mempool
cd mempool/docker
nano docker-compose.yml
docker-compose.yml, api environment (from the mempool README)
A self-hosted mempool.space gives you a block explorer and fee estimator that reads your own node, so your address lookups stay on your server.
Public explorers see the addresses you search. Your own instance sees only your own queries, and it shows the state of the mempool your node holds. The cost is the full chain and an Electrum index on disk and a few services to keep updated. If the chain is the only thing you need, a plain node is cheaper; read Bitcoin blockchain size 2026 before you pick the plan. Mining is not allowed on any plan, with any coin or software. A node that downloads, verifies and relays blocks does not mine, and neither does a Lightning node, an indexer or a trading bot.
How do you keep the stack safe and running?
Keep RPC and the Electrum port closed to the internet, publish only the web port you want, and start the Docker stack again after a reboot.
The RPC login of Bitcoin Core grants full control of the node, so it must be reachable from the Docker network alone. The same goes for the Fulcrum admin port. If you want the explorer to be public, put a reverse proxy with TLS in front of port 80; the README leaves the proxy to you. Check the node with bitcoin-cli getblockchaininfo before you blame the explorer when numbers look stale: the backend can only show what Bitcoin Core and the Electrum server have indexed. Back up your own configuration files; the chain data can be downloaded again. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS.
Frequently asked questions
Can mempool.space run on a pruned node?
No. The Docker setup assumes an unpruned node with txindex=1, so it needs Bullion or Sovereign.
Do I need an Electrum server?
It is optional, but without one address lookups do not work. Use electrs or Fulcrum with MEMPOOL_BACKEND set to electrum.
What does the Docker image include?
Only the frontend and the backend. Bitcoin Core, the Electrum server and any reverse proxy are yours to deploy.
Which MEMPOOL_BACKEND value do I use?
electrum for electrs or Fulcrum, esplora for Blockstream’s electrs, none without an Electrum server.
Is mempool.space a Blockgilt product?
No. It is an open-source project. Blockgilt sells the VPS it runs on.
Verdict
Blockgilt Sovereign is the better choice if the explorer is private: node, Fulcrum and mempool fit on 2 TB and 32 GB of RAM for $105.08 a month.
Reserve is the better choice if you follow the production guide, with 16 vCPU, 64 GB RAM, 4 TB NVMe, 48 TB traffic.