Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose setup example? #491

Open
GopherJ opened this issue Apr 3, 2024 · 0 comments
Open

docker-compose setup example? #491

GopherJ opened this issue Apr 3, 2024 · 0 comments

Comments

@GopherJ
Copy link

GopherJ commented Apr 3, 2024

the following one encountered an issue with esplora: error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/data/.bitcoin.conf) error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/data/.bitcoin.conf)

version: '3.7'
services:
  bitcoind:
    image: ruimarinho/bitcoin-core:latest
    ports:
      - 18443:18443
      - 30001:30001
    command:
      - "-daemon=0"
      - "-debug=1"
      - "-debugexclude=libevent"
      - "-debugexclude=leveldb"
      - "-regtest=1"
      - "-rpcbind=0.0.0.0:18443"
      - "-rpcuser=devnet"
      - "-rpcpassword=devnet"
      - "-rpcallowip=0.0.0.0/0"
      - "-server=1"
      - "-txindex=1"
      - "-prune=0"
      - "-fallbackfee=0.0001"
      - "-zmqpubhashtx=tcp://0.0.0.0:30001"
      - "-zmqpubhashblock=tcp://0.0.0.0:30001"
      - "-zmqpubrawblock=tcp://0.0.0.0:30002"
      - "-zmqpubrawtx=tcp://0.0.0.0:30002"
    volumes:
      - "./chaindata/bitcoind:/home/bitcoin/.bitcoin"
    networks:
      testing_net:
        ipv4_address: 172.16.238.11
    restart: always

  electrs:
    image: blockstream/esplora:electrs-latest
    ports:
      - 3000:3000
      - 50001:50001
    user: root
    command:
      - "/app/electrs_bitcoin/bin/electrs"
      - "-vvvv"
      - "--timestamp"
      - "--daemon-dir=/app/.bitcoin"
      - "--db-dir=/app/db"
      - "--network=regtest"
      - "--http-addr=0.0.0.0:3000"
      - "--electrum-rpc-addr=0.0.0.0:50001"
      - "--daemon-rpc-addr=172.16.238.11:18443"
      - "--cookie=devnet:devnet"
      - "--electrum-txs-limit=1000000"
      - "--cors=*"
      - "--utxos-limit=1000000"
    volumes:
      - "./chaindata/explorer:/app/db"
      - "./chaindata/bitcoind:/app/.bitcoin"
    networks:
      testing_net:
        ipv4_address: 172.16.238.12
    restart: always

  esplora:
    image: blockstream/esplora:latest
    network_mode: "host"
    environment:
      - API_URL=http://devnet:devnet@localhost:3000
    command:
      - "/srv/explorer/run.sh"
      - "bitcoin-regtest"
      - "explorer"
    volumes:
      - "./chaindata/bitcoind:/data"
    restart: always

networks:
  testing_net:
    ipam:
      driver: default
      config:
        - subnet: 172.16.238.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant