Set seednode options with Docker Config

This commit is contained in:
Alva Swanson 2023-10-15 17:26:24 +02:00
parent e08445dd40
commit 1e5fe7a189
No known key found for this signature in database
GPG key ID: 004760E77F753090
7 changed files with 75 additions and 106 deletions

View file

@ -1,33 +0,0 @@
# java memory and remote management options
JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
# bitcoin p2p settings
BITCOIN_P2P_HOST=bisq-bitcoind
BITCOIN_P2P_PORT=8333
# bitcoind rpc ports
BITCOIN_RPC_HOST=bisq-bitcoind
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_HOST=bisq-bitcoind
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
BITCOIN_RPC_USER=bisq
BITCOIN_RPC_PASS=bisq
# bisq pathnames
BISQ_HOME=/bisq
BISQ_APP_NAME=bisq-seednode
BISQ_BASE_CURRENCY=btc_mainnet
BISQ_DAO_FULLNODE=true
# bisq node settings
BISQ_NODE_PORT=8000
BISQ_MAX_CONNECTIONS=20
BISQ_MAX_MEMORY=4000
# set to true for BSQ explorer
BISQ_DUMP_BLOCKCHAIN=false
# set to true for BSQ markets
BISQ_DUMP_STATISTICS=false

View file

@ -22,14 +22,18 @@ services:
- -onion=bisq-tor:9050 - -onion=bisq-tor:9050
- -rpcallowip=127.0.0.1 - -rpcallowip=127.0.0.1
- -rpcallowip=172.0.0.1/8 # Docker IP range - -rpcallowip=172.0.0.1/8 # Docker IP range
- -rpcuser=${BITCOIN_RPC_USER} - -rpcuser=bisq
- -rpcpassword=${BITCOIN_RPC_PASS} - -rpcpassword=bisq
- -blocknotify=/root/.bitcoin/blocknotify.sh %s - -blocknotify=/root/.bitcoin/blocknotify.sh %s
- -bind=0.0.0.0:${BITCOIN_RPC_PORT} - -bind=0.0.0.0:8332
- -rpcbind=0.0.0.0:${BITCOIN_RPC_PORT} - -rpcbind=0.0.0.0:8332
bisq-seednode: bisq-seednode:
image: bisq/seednode:latest image: bisq/seednode:latest
environment:
- JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
configs:
- bisq_seednode_config
depends_on: depends_on:
- bisq-bitcoind - bisq-bitcoind
deploy: deploy:
@ -39,30 +43,11 @@ services:
extra_hosts: extra_hosts:
- host.docker.internal:host-gateway - host.docker.internal:host-gateway
ports: ports:
- ${BISQ_NODE_PORT}:${BISQ_NODE_PORT} # bisq node port - 8000:8000 # bisq node port
- 127.0.0.1:5120:5120 # bitcoind rpc block notifications
volumes: volumes:
- bisq_seednode_data:/bisq/bisq-seednode - bisq_seednode_data:/bisq/bisq-seednode
command: command:
- --fullDaoNode=${BISQ_DAO_FULLNODE} - --configFile=/bisq_seednode_config
- --userDataDir=${BISQ_HOME}
- --appName=${BISQ_APP_NAME}
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY}
- --maxConnections=${BISQ_MAX_CONNECTIONS}
- --maxMemory=${BISQ_MAX_MEMORY}
- --nodePort=${BISQ_NODE_PORT}
- --btcNodes=${BITCOIN_P2P_HOST}:${BITCOIN_P2P_PORT}
- --rpcBlockNotificationHost=${BITCOIN_RPC_BLOCKNOTIFY_HOST}
- --rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT}
- --rpcHost=${BITCOIN_RPC_HOST}
- --rpcPort=${BITCOIN_RPC_PORT}
- --rpcUser=${BITCOIN_RPC_USER}
- --rpcPassword=${BITCOIN_RPC_PASS}
- --dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN}
- --dumpStatistics=${BISQ_DUMP_STATISTICS}
- --torControlHost=bisq-tor
- --torControlPort=9051
- --torControlPassword=bisq
bisq-tor: bisq-tor:
image: bisq/tor:latest image: bisq/tor:latest
@ -81,6 +66,10 @@ services:
"--HiddenServiceStatistics", "0", "--HiddenServiceStatistics", "0",
"--AvoidDiskWrites", "1" ] "--AvoidDiskWrites", "1" ]
configs:
bisq_seednode_config:
file: ./seednode_config
volumes: volumes:
bisq_seednode_data: bisq_seednode_data:
tor_data: tor_data:

View file

@ -1,22 +0,0 @@
# java memory and remote management options
JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
# bitcoin p2p settings
BITCOIN_P2P_HOST=bisq-bitcoind
BITCOIN_P2P_PORT=18444
# bitcoind rpc ports
BITCOIN_RPC_HOST=bisq-bitcoind
BITCOIN_RPC_PORT=18443
BITCOIN_RPC_BLOCKNOTIFY_HOST=0.0.0.0
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
BITCOIN_RPC_USER=bisqdao
BITCOIN_RPC_PASS=bsq
# bisq pathnames
BISQ_HOME=/bisq
BISQ_APP_NAME=bisq-seednode
BISQ_BASE_CURRENCY=BTC_REGTEST
BISQ_DAO_FULLNODE=true

View file

@ -25,6 +25,10 @@ services:
bisq-seednode-1: bisq-seednode-1:
image: bisq/seednode:latest image: bisq/seednode:latest
environment:
- JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
configs:
- bisq_seednode_1_config
depends_on: depends_on:
- bisq-bitcoind - bisq-bitcoind
extra_hosts: extra_hosts:
@ -35,22 +39,14 @@ services:
volumes: volumes:
- bisq_seednode_1_data:/bisq/bisq-seednode - bisq_seednode_1_data:/bisq/bisq-seednode
command: command:
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY} - --configFile=/bisq_seednode_1_config
- --useLocalhostForP2P=true
- --useDevPrivilegeKeys=true
- --fullDaoNode=${BISQ_DAO_FULLNODE}
- --btcNodes=${BITCOIN_P2P_HOST}:${BITCOIN_P2P_PORT}
- --rpcHost=${BITCOIN_RPC_HOST}
- --rpcPort=${BITCOIN_RPC_PORT}
- --rpcUser=${BITCOIN_RPC_USER}
- --rpcPassword=${BITCOIN_RPC_PASS}
- --rpcBlockNotificationPort=5120
- --nodePort=2002
- --userDataDir=${BISQ_HOME}
- --appName=${BISQ_APP_NAME}
bisq-seednode-2: bisq-seednode-2:
image: bisq/seednode:latest image: bisq/seednode:latest
environment:
- JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
configs:
- bisq_seednode_2_config
depends_on: depends_on:
- bisq-bitcoind - bisq-bitcoind
extra_hosts: extra_hosts:
@ -61,19 +57,7 @@ services:
volumes: volumes:
- bisq_seednode_2_data:/bisq/bisq-seednode - bisq_seednode_2_data:/bisq/bisq-seednode
command: command:
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY} - --configFile=/bisq_seednode_2_config
- --useLocalhostForP2P=true
- --useDevPrivilegeKeys=true
- --fullDaoNode=${BISQ_DAO_FULLNODE}
- --btcNodes=${BITCOIN_P2P_HOST}:${BITCOIN_P2P_PORT}
- --rpcHost=${BITCOIN_RPC_HOST}
- --rpcPort=${BITCOIN_RPC_PORT}
- --rpcUser=${BITCOIN_RPC_USER}
- --rpcPassword=${BITCOIN_RPC_PASS}
- --rpcBlockNotificationPort=5121
- --nodePort=3002
- --userDataDir=${BISQ_HOME}
- --appName=${BISQ_APP_NAME}
bisq-tor: bisq-tor:
image: bisq/tor:latest image: bisq/tor:latest
@ -88,6 +72,12 @@ services:
"--HiddenServiceStatistics", "0", "--HiddenServiceStatistics", "0",
"--AvoidDiskWrites", "1" ] "--AvoidDiskWrites", "1" ]
configs:
bisq_seednode_1_config:
file: ./seednode_1_config
bisq_seednode_2_config:
file: ./seednode_2_config
volumes: volumes:
bisq_seednode_1_data: bisq_seednode_1_data:
bisq_seednode_2_data: bisq_seednode_2_data:

View file

@ -0,0 +1,13 @@
baseCurrencyNetwork=BTC_REGTEST
useLocalhostForP2P=true
useDevPrivilegeKeys=true
fullDaoNode=true
btcNodes=bisq-bitcoind:18444
rpcHost=bisq-bitcoind
rpcPort=18443
rpcUser=bisqdao
rpcPassword=bsq
rpcBlockNotificationPort=5120
nodePort=2002
userDataDir=/bisq
appName=bisq-seednode

View file

@ -0,0 +1,13 @@
baseCurrencyNetwork=BTC_REGTEST
useLocalhostForP2P=true
useDevPrivilegeKeys=true
fullDaoNode=true
btcNodes=bisq-bitcoind:18444
rpcHost=bisq-bitcoind
rpcPort=18443
rpcUser=bisqdao
rpcPassword=bsq
rpcBlockNotificationPort=5121
nodePort=3002
userDataDir=/bisq
appName=bisq-seednode

View file

@ -0,0 +1,19 @@
fullDaoNode=true
userDataDir=/bisq
appName=bisq-seednode
baseCurrencyNetwork=btc_mainnet
maxConnections=20
maxMemory=4000
nodePort=8000
btcNodes=bisq-bitcoind:8333
rpcBlockNotificationHost=bisq-bitcoind
rpcBlockNotificationPort=5120
rpcHost=bisq-bitcoind
rpcPort=8332
rpcUser=bisq
rpcPassword=bisq
dumpBlockchainData=false
dumpStatistics=false
torControlHost=bisq-tor
torControlPort=9051
torControlPassword=bisq