Bitcoin core docker compose + esplora

Open
#541 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, docker-compose

Research direction

Start by validating the supplied compose file with docker compose config, then run it and inspect the Bitcoin and Esplora container logs. Done means the signet Esplora service connects to bitcoin_signet and is reachable through the configured ports; the issue does not name a repository file or test.

Written by the indexing model from the issue text.

Description

Hi, I would like to connect esplora to my bitcoin core node.

This is my actual docker compose but don't work:

services:
    bitcoin_signet:
      container_name: bitcoin_signet
      image: bitcoin/bitcoin:latest
      stop_grace_period: 1m
      command:
        - -printtoconsole=1
        - -signet=1
        - -server=1
        - -txindex=1
        - -rpcallowip=172.0.0.0/8
        - -rpcbind=0.0.0.0
        - -rpcauth=${RPCAUTH}
      ports:
        - 38332:38332
        - 38333:38333
      volumes:
        - ./bitcoin:/home/bitcoin/.bitcoin
      networks:
        - bitcoin_signet_network
    esplora_signet:
      container_name: esplora_signet
      image: blockstream/esplora:latest
      build:
        context: ./esplora
        dockerfile: Dockerfile
      stop_grace_period: 1m
      command: /srv/explorer/run.sh bitcoin-signet explorer
      ports:
        - 8084:80
        - 50001:50001
      volumes:
        - ./esplora_data:/data
      environment:
        ELECTRS_ARGS: --utxos-limit 1000000 --jsonrpc-import  --cors '*' --daemon-rpc-addr bitcoin_signet:38332
      networks:
        - bitcoin_signet_network

networks:
  bitcoin_signet_network:
    name: bitcoin_signet_network
Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.