seednode-docker: Add blocknotify support

This commit is contained in:
Alva Swanson 2023-10-15 17:43:20 +02:00
parent 31c3e7a5c1
commit 984630d13e
No known key found for this signature in database
GPG Key ID: 004760E77F753090
4 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
echo $1 | nc -w 1 bisq-seednode 5120

View File

@ -11,6 +11,7 @@ services:
- 8333:8333 # bitcoind port - 8333:8333 # bitcoind port
volumes: volumes:
- ./bitcoind_data_dir:/root/.bitcoin - ./bitcoind_data_dir:/root/.bitcoin
- ./blocknotify.sh:/blocknotify.sh
command: command:
- -server=1 - -server=1
- -listen=1 - -listen=1
@ -24,7 +25,7 @@ services:
- -rpcallowip=172.0.0.1/8 # Docker IP range - -rpcallowip=172.0.0.1/8 # Docker IP range
- -rpcuser=bisq - -rpcuser=bisq
- -rpcpassword=bisq - -rpcpassword=bisq
- -blocknotify=/root/.bitcoin/blocknotify.sh %s - -blocknotify=/blocknotify.sh %s
- -bind=0.0.0.0:8332 - -bind=0.0.0.0:8332
- -rpcbind=0.0.0.0:8332 - -rpcbind=0.0.0.0:8332

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo $1 | nc -w 1 bisq-seednode-1 5120
echo $1 | nc -w 1 bisq-seednode-2 5121

View File

@ -5,6 +5,7 @@ services:
image: bisq/bitcoind:latest image: bisq/bitcoind:latest
volumes: volumes:
- ./bitcoind_data_dir:/root/.bitcoin - ./bitcoind_data_dir:/root/.bitcoin
- ./blocknotify.sh:/blocknotify.sh
command: command:
- -regtest - -regtest
- -server=1 - -server=1
@ -19,7 +20,7 @@ services:
- -rpcallowip=172.0.0.1/8 # Docker IP range - -rpcallowip=172.0.0.1/8 # Docker IP range
- -rpcuser=${BITCOIN_RPC_USER} - -rpcuser=${BITCOIN_RPC_USER}
- -rpcpassword=${BITCOIN_RPC_PASS} - -rpcpassword=${BITCOIN_RPC_PASS}
- -blocknotify=/root/.bitcoin/blocknotify.sh %s - -blocknotify=/blocknotify.sh %s
- -bind=0.0.0.0:${BITCOIN_RPC_PORT} - -bind=0.0.0.0:${BITCOIN_RPC_PORT}
- -rpcbind=0.0.0.0:${BITCOIN_RPC_PORT} - -rpcbind=0.0.0.0:${BITCOIN_RPC_PORT}