Skip to content

Instantly share code, notes, and snippets.

@tenequm
Created September 19, 2024 06:10
Show Gist options
  • Save tenequm/ab9b0f509b876c5a954aacebc4763226 to your computer and use it in GitHub Desktop.
Save tenequm/ab9b0f509b876c5a954aacebc4763226 to your computer and use it in GitHub Desktop.
A Docker Compose config to quickly spin up `bitcoind` with `ord` node for Fractal Bitcoin network
services:
bitcoind:
image: fractalbitcoin/fractal:v0.2.1
restart: always
entrypoint: ["bitcoind", "-datadir=/data/"]
configs: [{ source: bitcoinconf, target: /data/bitcoin.conf }]
ports:
- "8330:8330"
- "8331:8331"
- "8332:8332"
volumes:
- ./data/bitcoind:/data
ord:
# Ref: https://github.com/fractal-bitcoin/ord/releases/tag/v0.20.0-f1
image: tenequm/ord-fractal:v0.20.0-f1
restart: unless-stopped
stop_grace_period: 15m30s
depends_on: [bitcoind]
entrypoint: /usr/local/bin/ord
command: --chain=fractal-mainnet server --http-port=8080
volumes:
- ./data/ord:/index-data
- ./data/bitcoind:/data/.bitcoin
environment:
ORD_BITCOIN_DATA_DIR: /data/.bitcoin
ORD_BITCOIN_RPC_URL: 'bitcoind:8332'
ORD_BITCOIN_RPC_USERNAME: ${RPC_USER:-bitcoin}
ORD_BITCOIN_RPC_PASSWORD: ${RPC_PASSWORD:-opcatAwesome}
ORD_BITCOIN_RPC_LIMIT: '24'
ORD_DATA_DIR: /index-data
ORD_INDEX_RUNES: '1'
ORD_INDEX_SATS: '1'
ORD_INDEX_SPENT_SATS: '1'
ORD_INDEX_TRANSACTIONS: '1'
ORD_INDEX_ADDRESSES: '1'
# RUST_LOG: debug
ports: ['8080:8080']
configs:
bitcoinconf:
content: |
txindex=1
server=1
rest=1
maxtipage=504576000
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0
rpcport=8332
rpcuser=${RPC_USER:-bitcoin}
rpcpassword=${RPC_PASSWORD:-opcatAwesome}
rpcworkqueue=2048
rpcthreads=32
rpcservertimeout=120
maxconnections=50
mempoolfullrbf=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment