# How to self-host mempool.space?

> How to self-host mempool.space in 7 steps with Docker: it needs an unpruned node with txindex=1. Sovereign has 2 TB NVMe and costs $105.08 a month.

- URL: https://blockgilt.com/guides/how-to-self-host-mempool-space/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

Mempool publishes Docker images of its frontend and backend. You run Bitcoin Core and an Electrum server yourself and point the backend at them.

**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 November 10, 2026.*

## What are the steps to self-host mempool.space?

1. **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.
2. **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.
3. **Run an Electrum server** — Install Fulcrum or electrs and let it index. Without it, address pages and balances are missing.
4. **Install Docker and docker-compose** — Follow Docker’s own installation guide for your distribution. The mempool README expects docker-compose.
5. **Clone the mempool repository** — The docker directory holds the Dockerfiles and the docker-compose.yml.
6. **Edit the backend variables** — Set MEMPOOL_BACKEND, the Core RPC host, port and login, and the Electrum host and port in the api environment.
7. **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.

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Bullion | 6 vCPU · 16 GB RAM · 1.5 TB NVMe | $145.74 | $437.22 | $699.55 (−20%) | $874.44 (−50%) |
| Sovereign | 8 vCPU · 32 GB RAM · 2 TB NVMe | $210.16 | $630.48 | $1,008.76 (−20%) | $1,260.96 (−50%) |
| Reserve | 16 vCPU · 64 GB RAM · 4 TB NVMe | $415.38 | $1,246.14 | $1,993.82 (−20%) | $2,492.28 (−50%) |

In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC

**Before you pay**

- Minimum top-up $25. Top up once in crypto, then buy any plan from your balance.
- Credit on your balance does not expire and renews any of your VPS. When a top-up is only made to reach the minimum, the unspent part comes back on request within 30 days of payment, in USDT or USDC. The rest of a balance is not paid out unless the law requires it.
- Credited once your payment is checked on the blockchain. Typical network confirmation time: BTC ≈ 20 min · USDT TRC-20 ≈ 1 min · USDT ERC-20 ≈ 5 min · USDC ERC-20 ≈ 5 min · ETH ≈ 5 min · SOL ≈ 1 min · LTC ≈ 15 min · XMR ≈ 20 min

## 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](https://blockgilt.com/vps-for-bitcoin-node/ "Which VPS do you need for a Bitcoin node?") and the index in [Electrum server VPS](https://blockgilt.com/electrum-server-vps/ "What VPS do you need for an Electrum server?").

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](https://blockgilt.com/guides/how-to-install-fulcrum/ "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](https://blockgilt.com/guides/how-to-run-a-bitcoin-node-on-a-vps/ "How to run a Bitcoin node on a VPS?").

*The file ~/.bitcoin/bitcoin.conf*

```ini
txindex=1
server=1
rpcuser=mempool
rpcpassword=REPLACEME
```

## 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*

```bash
git clone https://github.com/mempool/mempool
cd mempool/docker
nano docker-compose.yml
```

*docker-compose.yml, api environment (from the mempool README)*

```yaml
  api:
    environment:
      MEMPOOL_BACKEND: "electrum"
      CORE_RPC_HOST: "172.27.0.1"
      CORE_RPC_PORT: "8332"
      CORE_RPC_USERNAME: "mempool"
      CORE_RPC_PASSWORD: "REPLACEME"
      CORE_RPC_TIMEOUT: "60000"
      ELECTRUM_HOST: "172.27.0.1"
      ELECTRUM_PORT: "50001"
      ELECTRUM_TLS_ENABLED: "false"
```

*Run it*

```bash
docker-compose up
```

## What does self-hosting mempool.space give you?

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](https://blockgilt.com/bitcoin-blockchain-size/ "How big is the Bitcoin blockchain in 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.

## Sources

1. [mempool Docker README](https://github.com/mempool/mempool/blob/master/docker/README.md) — mempool (checked 2026-11-10)
2. [mempool production README](https://github.com/mempool/mempool/blob/master/production/README.md) — mempool (checked 2026-11-10)
3. [Fulcrum README](https://github.com/cculianu/Fulcrum) — Fulcrum (checked 2026-11-10)
4. [bitcoin.conf configuration file](https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md) — Bitcoin Core (checked 2026-11-10)
5. [Bitcoin blockchain size](https://www.blockchain.com/explorer/charts/blocks-size) — blockchain.com (checked 2026-11-10)

**Order a Sovereign for your mempool explorer** 8 vCPU, 32 GB of RAM and 2 TB of NVMe for $105.08 a month on 12 months. [Order Sovereign](https://blockgilt.com/app/checkout/?plan=sovereign&from=how-to-self-host-mempool-space&lang=en) · [Compare all plans](https://blockgilt.com/pricing/ "How much does a VPS for a crypto node cost?")

---

Blockgilt: Blockgilt is a VPS provider for crypto nodes and trading bots, paid in crypto with no ID upload and operated by DomaineGoat LLC, a Panama-registered company. Its eight NVMe plans, from 80 GB to 6 TB, are sized for Bitcoin, Lightning, Monero and Ethereum nodes, Electrum servers, BTCPay Server, Freqtrade and Hummingbot, in Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan). On the 12-month term, each plan is priced at least 25% under a named comparable plan, chosen among 72 crypto-accepting VPS hosts read on 10 November 2026.
