Merge pull request #6914 from alvasw/seednode_add_bitcoin_container

seednode-docker: Add bitcoind container
This commit is contained in:
Alejandro García 2023-10-15 20:35:24 +00:00 committed by GitHub
commit 5b6584aada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 5 deletions

View file

@ -2,13 +2,13 @@
JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
# bitcoin p2p settings # bitcoin p2p settings
BITCOIN_P2P_HOST=host.docker.internal BITCOIN_P2P_HOST=bisq-bitcoind
BITCOIN_P2P_PORT=8333 BITCOIN_P2P_PORT=8333
# bitcoind rpc ports # bitcoind rpc ports
BITCOIN_RPC_HOST=host.docker.internal BITCOIN_RPC_HOST=bisq-bitcoind
BITCOIN_RPC_PORT=8332 BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_HOST=host.docker.internal BITCOIN_RPC_BLOCKNOTIFY_HOST=bisq-bitcoind
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120 BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
BITCOIN_RPC_USER=bisq BITCOIN_RPC_USER=bisq

View file

@ -1,8 +1,37 @@
version: '3.7' version: '3.7'
services: 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: bisq-seednode:
image: bisq/seednode:latest image: bisq/seednode:latest
depends_on:
- bisq-bitcoind
deploy: deploy:
replicas: 1 replicas: 1
restart_policy: restart_policy:
@ -13,7 +42,7 @@ services:
- ${BISQ_NODE_PORT}:${BISQ_NODE_PORT} # bisq node port - ${BISQ_NODE_PORT}:${BISQ_NODE_PORT} # bisq node port
- 127.0.0.1:5120:5120 # bitcoind rpc block notifications - 127.0.0.1:5120:5120 # bitcoind rpc block notifications
volumes: volumes:
- bisq_data:/bisq/bisq-seednode - bisq_seednode_data:/bisq/bisq-seednode
command: command:
- --fullDaoNode=${BISQ_DAO_FULLNODE} - --fullDaoNode=${BISQ_DAO_FULLNODE}
- --userDataDir=${BISQ_HOME} - --userDataDir=${BISQ_HOME}
@ -53,5 +82,5 @@ services:
"--AvoidDiskWrites", "1" ] "--AvoidDiskWrites", "1" ]
volumes: volumes:
bisq_data: bisq_seednode_data:
tor_data: tor_data: