Skip to content

Commit

Permalink
Merge pull request #6915 from alvasw/seednode_docker_add_regtest_setup
Browse files Browse the repository at this point in the history
seednode-docker: Create regtest setup
  • Loading branch information
alejandrogarcia83 authored Oct 15, 2023
2 parents 5b6584a + f85395a commit 1e0f35a
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
22 changes: 22 additions & 0 deletions seednode/deployment_v2/docker/regtest/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
93 changes: 93 additions & 0 deletions seednode/deployment_v2/docker/regtest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
version: '3.7'

services:
bisq-bitcoind:
image: bisq/bitcoind:latest
volumes:
- ./bitcoind_data_dir:/root/.bitcoin
command:
- -regtest
- -server=1
- -listen=1
- -discover=1
- -txindex=1
- -dbcache=1337
- -maxconnections=1337
- -peerbloomfilters=1
- -onion=bisq-tor:9050
- -rpcallowip=127.0.0.1
- -rpcallowip=172.0.0.1/8 # Docker IP range
- -rpcuser=${BITCOIN_RPC_USER}
- -rpcpassword=${BITCOIN_RPC_PASS}
- -blocknotify=/root/.bitcoin/blocknotify.sh %s
- -bind=0.0.0.0:${BITCOIN_RPC_PORT}
- -rpcbind=0.0.0.0:${BITCOIN_RPC_PORT}

bisq-seednode-1:
image: bisq/seednode:latest
depends_on:
- bisq-bitcoind
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 2002:2002 # bisq node port
- 5120:5120 # bitcoind rpc block notifications
volumes:
- bisq_seednode_1_data:/bisq/bisq-seednode
command:
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY}
- --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:
image: bisq/seednode:latest
depends_on:
- bisq-bitcoind
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 3002:3002 # bisq node port
- 5121:5121 # bitcoind rpc block notifications
volumes:
- bisq_seednode_2_data:/bisq/bisq-seednode
command:
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY}
- --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:
image: bisq/tor:latest
extra_hosts:
- host.docker.internal:host-gateway
command: [ "--allow-missing-torrc",
"--SOCKSPort", "0.0.0.0:9050",
"--ControlPort", "0.0.0.0:9051",
"--HashedControlPassword", "16:ED08CEBE4E91EA126089506E2880119E20A39054754D3916EAFF774046", # password: bisq
"--Log", "notice",
"--SafeSocks", "0",
"--HiddenServiceStatistics", "0",
"--AvoidDiskWrites", "1" ]

volumes:
bisq_seednode_1_data:
bisq_seednode_2_data:

0 comments on commit 1e0f35a

Please sign in to comment.