Add other network modes for testing

This commit is contained in:
zontreck 2025-02-10 02:46:31 -07:00
parent 2b3a750a67
commit 1f1ef6152a
2 changed files with 18 additions and 0 deletions

View file

@ -27,6 +27,9 @@ ENV USER nan
ENV PASS nan
ENV ENABLE_RPC 0
ENV ENABLE_AUTH 1
ENV REGTEST 0
ENV TESTNET3 0
ENV TESTNET4 0
EXPOSE 8333
EXPOSE 8332

View file

@ -5,6 +5,21 @@ echo "txindex=$TXINDEX" >> /btc.conf
echo "coinstatsindex=$TXINDEX" >> /btc.conf
echo "datadir=/data" >> /btc.conf
if [ $REGTEST == 1 ]
then
echo "regtest=1" >> /btc.conf
fi
if [ $TESTNET3 == 1 ]
then
echo "testnet=1" >> /btc.conf
fi
if [ $TESTNET4 == 1 ]
then
echo "testnet4=1" >> /btc.conf
fi
if [ $ENABLE_RPC == 1 ]
then
echo "server=1" >> /btc.conf