From 857c70497ab4de9f36cbea8e593d72156ba4c617 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Tue, 10 Oct 2023 22:31:24 +0200 Subject: [PATCH] seednode-docker: Connect to Bitcoin Core on host --- seednode/deployment_v2/docker/.env | 6 +++--- seednode/deployment_v2/docker/docker-compose.yml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/seednode/deployment_v2/docker/.env b/seednode/deployment_v2/docker/.env index ca52283a845..95692e4cdcf 100644 --- a/seednode/deployment_v2/docker/.env +++ b/seednode/deployment_v2/docker/.env @@ -2,13 +2,13 @@ JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError # bitcoin p2p settings -BITCOIN_P2P_HOST=127.0.0.1 +BITCOIN_P2P_HOST=host.docker.internal BITCOIN_P2P_PORT=8333 # bitcoind rpc ports -BITCOIN_RPC_HOST=192.168.1.1 +BITCOIN_RPC_HOST=host.docker.internal BITCOIN_RPC_PORT=8332 -BITCOIN_RPC_BLOCKNOTIFY_HOST=127.0.0.1 +BITCOIN_RPC_BLOCKNOTIFY_HOST=host.docker.internal BITCOIN_RPC_BLOCKNOTIFY_PORT=5120 BITCOIN_RPC_USER=bisq diff --git a/seednode/deployment_v2/docker/docker-compose.yml b/seednode/deployment_v2/docker/docker-compose.yml index b4a1090802b..5cb51de505c 100644 --- a/seednode/deployment_v2/docker/docker-compose.yml +++ b/seednode/deployment_v2/docker/docker-compose.yml @@ -7,6 +7,10 @@ services: replicas: 1 restart_policy: condition: any + extra_hosts: + - host.docker.internal:host-gateway + ports: + - 127.0.0.1:5120:5120 # bitcoind rpc block notifications volumes: - bisq_data:/bisq/bisq-seednode command: