Automated Docker images for electrs (Electrum server), built from source per release.
260
This repository provides automated Docker images for Electrs.
Images are built for all official releases starting from v0.11.0 and pushed to GitHub Container Registry (GHCR).
The workflow automatically detects new releases from romanz/electrs and triggers the Docker build.
The latest tag is set only for the newest official release.
Electrs provides a fast, private, and fully indexed Electrum-compatible API backed by your own Bitcoin Core node.
PUID, PGID, and UMASK (Unraid compatible)electrs.toml in the data directory.cookie authentication file must be mounted into /home/electrs/.bitcoin/data/electrs.toml must be provided by the userImages are published to GHCR and Docker Hub — use whichever you prefer:
docker pull ghcr.io/anym001/docker-electrs:<version>
docker pull anym001/docker-electrs:<version> # Docker Hub
Minimal example:
docker run -d \
--name electrs \
-p 50001:50001 \
-v /mnt/user/bitcoin/electrs:/data \
-v /mnt/user/bitcoin/bitcoind:/home/electrs/.bitcoin \
ghcr.io/anym001/docker-electrs:<version>
With permissions mapping:
docker run -d \
--name electrs \
-e PUID=99 \
-e PGID=100 \
-e UMASK=002 \
-p 50001:50001 \
-p 4224:4224 \
-v /mnt/user/bitcoin/electrs:/data \
-v /mnt/user/bitcoin/bitcoind:/home/electrs/.bitcoin \
ghcr.io/anym001/docker-electrs:<version>
Tags:
<version> — e.g., 0.11.0 (always built for each release)latest — points to the latest official releaseYou must create a configuration file inside your mounted directory:
/your/data/dir/electrs.toml
Inside the container this becomes:
/data/electrs.toml
Example:
network = "bitcoin"
daemon_rpc_addr = "bitcoind:8332"
daemon_p2p_addr = "bitcoind:8333"
daemon_auth = "/home/electrs/.bitcoin/.cookie"
db_dir = "/data/db"
electrum_rpc_addr = "0.0.0.0:50001"
| Variable | Description |
|---|---|
PUID | Container user UID (maps to host UID). Optional. |
PGID | Container group GID (maps to host GID). Optional. |
UMASK | Default file creation mask inside the container. Default: 002 |
| Container Path | Purpose |
|---|---|
/data | Electrs data directory (index database, config file) |
/home/electrs/.bitcoin | Bitcoin Core data directory (cookie auth file) |
| Port | Description |
|---|---|
50001/tcp | Electrum RPC port |
4224/tcp | Prometheus metrics (optional) |
This image is designed with safety in mind:
electrsdebian:stable-slim)PUID, PGID, and UMASKrelease-check.yml workflow:
build-docker.yml for missing releasesLATEST=true for the newest releasebuild-docker.yml workflow:
PRs are welcome, especially improvements to:
The contents of this repository (Dockerfile, scripts, and workflows) are licensed under the MIT License.
This project only packages electrs into Docker images; the upstream source code is compiled at build time, not modified or redistributed in this repository. electrs is distributed under its own MIT license, and all upstream copyrights and trademarks remain with their respective owners.
Built with Claude Code.
Content type
Image
Digest
sha256:4f42067b6…
Size
40 MB
Last updated
10 days ago
docker pull anym001/docker-electrs