mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: brk
|
|
|
|
services:
|
|
brk:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
image: brk:latest
|
|
container_name: brk
|
|
restart: unless-stopped
|
|
ports:
|
|
- 7070:3110
|
|
volumes:
|
|
- ${BITCOIN_DATA_DIR:-/path/to/bitcoin}:/bitcoin:ro
|
|
- ${BRK_DATA_VOLUME:-brk-data}:/home/brk/.brk
|
|
# Bind mount alternative (uncomment and set BRK_DATA_DIR in .env):
|
|
# - ${BRK_DATA_DIR:-./brk-data}:/home/brk/.brk
|
|
command:
|
|
- --bitcoindir
|
|
- /bitcoin
|
|
- --blocksdir
|
|
- /bitcoin/blocks
|
|
- --brkdir
|
|
- /home/brk/.brk
|
|
- --rpcconnect
|
|
- "${BTC_RPC_HOST:-localhost}"
|
|
- --rpcuser
|
|
- "${BTC_RPC_USER:-bitcoin}"
|
|
- --rpcpassword
|
|
- "${BTC_RPC_PASSWORD:-bitcoin}"
|
|
# Cookie file alternative (uncomment and remove rpcuser/rpcpassword above):
|
|
# - --rpccookiefile
|
|
# - /bitcoin/.cookie
|
|
healthcheck:
|
|
test: ["CMD", "pgrep", "-x", "brk"]
|
|
interval: 30s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
brk-data:
|
|
driver: local
|