Skip to content

Commit 8c72267

Browse files
committed
docker: Add EXPOSE_BITCOIND_RPC option
To make the Bitcoin Core RPC server accessible from outside the container (needed to assist testing).
1 parent 87b66ce commit 8c72267

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ if [ -f /data/private_nodes ]; then
197197
cat /data/private_nodes >> /data/.${DAEMON}.conf
198198
fi
199199

200+
if [ -n "$EXPOSE_BITCOIND_RPC" ]; then
201+
cat << CONF >> /data/.${DAEMON}.conf
202+
rpcbind=0.0.0.0
203+
rpcallowip=0.0.0.0/0
204+
CONF
205+
fi
206+
200207
TORRCFILE="/srv/explorer/source/contrib/${DAEMON}-${NETWORK}-${MODE}-torrc"
201208
if [ -f $TORRCFILE ]; then
202209
cp $TORRCFILE /etc/tor/torrc

0 commit comments

Comments
 (0)