Skip to content

Commit

Permalink
Merge pull request #6914 from alvasw/seednode_add_bitcoin_container
Browse files Browse the repository at this point in the history
seednode-docker: Add bitcoind container
  • Loading branch information
alejandrogarcia83 authored Oct 15, 2023
2 parents 653b654 + 7b4df15 commit 5b6584a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
6 changes: 3 additions & 3 deletions seednode/deployment_v2/docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError

# bitcoin p2p settings
BITCOIN_P2P_HOST=host.docker.internal
BITCOIN_P2P_HOST=bisq-bitcoind
BITCOIN_P2P_PORT=8333

# bitcoind rpc ports
BITCOIN_RPC_HOST=host.docker.internal
BITCOIN_RPC_HOST=bisq-bitcoind
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_HOST=host.docker.internal
BITCOIN_RPC_BLOCKNOTIFY_HOST=bisq-bitcoind
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120

BITCOIN_RPC_USER=bisq
Expand Down
33 changes: 31 additions & 2 deletions seednode/deployment_v2/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
version: '3.7'

services:
bisq-bitcoind:
image: bisq/bitcoind:latest
deploy:
replicas: 1
restart_policy:
condition: any
ports:
- 8333:8333 # bitcoind port
volumes:
- ./bitcoind_data_dir:/root/.bitcoin
command:
- -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:
image: bisq/seednode:latest
depends_on:
- bisq-bitcoind
deploy:
replicas: 1
restart_policy:
Expand All @@ -13,7 +42,7 @@ services:
- ${BISQ_NODE_PORT}:${BISQ_NODE_PORT} # bisq node port
- 127.0.0.1:5120:5120 # bitcoind rpc block notifications
volumes:
- bisq_data:/bisq/bisq-seednode
- bisq_seednode_data:/bisq/bisq-seednode
command:
- --fullDaoNode=${BISQ_DAO_FULLNODE}
- --userDataDir=${BISQ_HOME}
Expand Down Expand Up @@ -53,5 +82,5 @@ services:
"--AvoidDiskWrites", "1" ]

volumes:
bisq_data:
bisq_seednode_data:
tor_data:

0 comments on commit 5b6584a

Please sign in to comment.