# BTCQ testnet node + indexer reference compose. # # Usage: # curl -fsSLO https://downloads.btcq.io/docker/compose.yaml # curl -fsSLO https://downloads.btcq.io/docker/btcq.conf.example # curl -fsSLO https://downloads.btcq.io/docker/btcq-electrs.toml.example # cp btcq.conf.example btcq.conf && $EDITOR btcq.conf # cp btcq-electrs.toml.example btcq-electrs.toml && $EDITOR btcq-electrs.toml # docker compose up -d # # Both services share an internal docker network. From the host: # - btcqd RPC on 127.0.0.1:18443 # - btcqd P2P on 0.0.0.0:18444 (open this if you want inbound peers) # - btcq-electrs Electrum protocol on 127.0.0.1:50001 # - btcq-electrs REST API on 127.0.0.1:4001 services: btcqd: image: downloads.btcq.io/btcqd:0.2.0-4 container_name: btcqd restart: unless-stopped volumes: - btcq-data:/var/lib/btcq # ":Z" relabels the bind-mounted file with a private SELinux # context so the container's btcq user can read it. No-op on # systems without SELinux (Ubuntu, Debian, Arch, etc.). Required # on Fedora/RHEL/CentOS hosts running Podman+SELinux. - ./btcq.conf:/etc/btcq/btcq.conf:ro,Z ports: - "127.0.0.1:18443:18443" # RPC, loopback only - "18444:18444" # P2P, all interfaces networks: - btcq-internal btcq-electrs: image: downloads.btcq.io/btcq-electrs:0.2.1-7 container_name: btcq-electrs restart: unless-stopped depends_on: btcqd: condition: service_healthy volumes: - electrs-data:/var/lib/btcq-electrs - ./btcq-electrs.toml:/etc/btcq-electrs/btcq-electrs.toml:ro,Z ports: - "127.0.0.1:50001:50001" # Electrum - "127.0.0.1:4001:4001" # REST networks: - btcq-internal volumes: btcq-data: electrs-data: networks: btcq-internal: