Last active
September 11, 2024 17:21
-
-
Save jaonoctus/2b2b8e1d826ddb4bde872cd7312df3cd to your computer and use it in GitHub Desktop.
DOCKER BITCOIN + RPC EXPLORER + ELECTRS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testnet=0 | |
regtest=0 | |
# Memory | |
dbcache=200 | |
maxmempool=300 | |
# Indexes | |
txindex=1 | |
blockfilterindex=1 | |
# SPV | |
peerbloomfilters=1 | |
peerblockfilters=1 | |
# Compatibility | |
deprecatedrpc=addresses # https://github.com/mempool/mempool/issues/778#issuecomment-919194258 | |
[main] | |
# Connections | |
port=8333 | |
rpcport=8332 | |
rpcbind=10.21.22.8 | |
rpcbind=127.0.0.1 | |
rpcallowip=10.21.22.1/16 | |
rpcallowip=127.0.0.1 | |
rpcauth=user:b6c2fcacdea33029bb9f89f058a797c0$3fa6bc810551d011ffde2289497db9497844e68b885050c9fcef8b42d98f016d | |
[test] | |
# Connections | |
port=18333 | |
rpcport=18332 | |
rpcbind=10.21.22.8 | |
rpcbind=127.0.0.1 | |
rpcallowip=10.21.22.1/16 | |
rpcallowip=127.0.0.1 | |
rpcauth=user:b6c2fcacdea33029bb9f89f058a797c0$3fa6bc810551d011ffde2289497db9497844e68b885050c9fcef8b42d98f016d | |
[regtest] | |
# Connections | |
port=18444 | |
rpcport=18443 | |
rpcbind=10.21.22.8 | |
rpcbind=127.0.0.1 | |
rpcallowip=10.21.22.1/16 | |
rpcallowip=127.0.0.1 | |
rpcauth=user:b6c2fcacdea33029bb9f89f058a797c0$3fa6bc810551d011ffde2289497db9497844e68b885050c9fcef8b42d98f016d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
bitcoin: | |
container_name: bitcoin | |
image: lncm/bitcoind:v22.0@sha256:37a1adb29b3abc9f972f0d981f45e41e5fca2e22816a023faa9fdc0084aa4507 | |
volumes: | |
- /home/jaonoctus/.bitcoin:/data/.bitcoin | |
restart: on-failure | |
stop_grace_period: 15m30s | |
ports: | |
- "8333:8333" | |
networks: | |
default: | |
ipv4_address: 10.21.22.8 | |
electrs: | |
container_name: electrs | |
image: getumbrel/electrs:v0.9.4@sha256:b1590ac6cfb0e5b481c6a7af7f0626d76cbb91c63702b0f5c47e2829e9c37997 | |
volumes: | |
- /home/jaonoctus/.bitcoin:/data/.bitcoin:ro | |
- ./data/electrs:/data | |
restart: on-failure | |
stop_grace_period: 5m | |
ports: | |
- "50001:50001" | |
networks: | |
default: | |
ipv4_address: 10.21.22.10 | |
depends_on: | |
- bitcoin | |
rpc-explorer: | |
image: getumbrel/btc-rpc-explorer:v3.3.0@sha256:cfd14f8e722cfbf1ad106ba224569c8babe685422461a641abc210e13913c636 | |
restart: on-failure | |
stop_grace_period: 1m | |
ports: | |
- "3002:3002" | |
environment: | |
# Docker requirements | |
BTCEXP_HOST: 0.0.0.0 | |
# Bitcoin Core | |
BTCEXP_BITCOIND_HOST: 10.21.22.8 | |
BTCEXP_BITCOIND_PORT: 8332 | |
BTCEXP_BITCOIND_USER: user | |
BTCEXP_BITCOIND_PASS: pass | |
# Electrum | |
BTCEXP_ADDRESS_API: electrumx | |
BTCEXP_ELECTRUMX_SERVERS: "tcp://10.21.22.10:50001" | |
# Log level | |
DEBUG: "btcexp:*,electrumClient" | |
# Performance | |
BTCEXP_SLOW_DEVICE_MODE: "true" | |
BTCEXP_NO_INMEMORY_RPC_CACHE: "true" | |
# Privacy | |
BTCEXP_PRIVACY_MODE: "true" | |
BTCEXP_NO_RATES: "true" | |
# Disable RPC | |
BTCEXP_RPC_ALLOWALL: "false" | |
BTCEXP_BASIC_AUTH_PASSWORD: "" | |
networks: | |
default: | |
ipv4_address: 10.21.22.12 | |
depends_on: | |
- electrs | |
networks: | |
default: | |
name: mempool_network | |
ipam: | |
driver: default | |
config: | |
- subnet: "10.21.22.0/24" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_filters = "INFO" | |
network = "bitcoin" | |
db_dir = "/data/db" | |
daemon_rpc_addr = "10.21.22.8:8332" | |
daemon_p2p_addr = "10.21.22.8:8333" | |
electrum_rpc_addr = "0.0.0.0:50001" | |
server_banner = "xablau" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment