Skip to content

Commit

Permalink
docker: Add EXPOSE_BITCOIND_RPC option
Browse files Browse the repository at this point in the history
To make the Bitcoin Core RPC server accessible from outside
the container (needed to assist testing).
  • Loading branch information
shesek committed Jan 22, 2022
1 parent 87b66ce commit 8c72267
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ if [ -f /data/private_nodes ]; then
cat /data/private_nodes >> /data/.${DAEMON}.conf
fi

if [ -n "$EXPOSE_BITCOIND_RPC" ]; then
cat << CONF >> /data/.${DAEMON}.conf
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
CONF
fi

TORRCFILE="/srv/explorer/source/contrib/${DAEMON}-${NETWORK}-${MODE}-torrc"
if [ -f $TORRCFILE ]; then
cp $TORRCFILE /etc/tor/torrc
Expand Down

0 comments on commit 8c72267

Please sign in to comment.