Adds env config flags to turn rpc server on or off
This commit is contained in:
parent
140cda6075
commit
58fe36eb80
2 changed files with 10 additions and 1 deletions
|
@ -23,8 +23,12 @@ RUN chmod +x entrypoint.sh
|
||||||
|
|
||||||
ENV TXINDEX 0
|
ENV TXINDEX 0
|
||||||
ENV PRUNE 953
|
ENV PRUNE 953
|
||||||
|
ENV USER nan
|
||||||
|
ENV PASS nan
|
||||||
|
ENV ENABLE_RPC 0
|
||||||
|
|
||||||
EXPOSE 8333
|
EXPOSE 8333
|
||||||
|
EXPOSE 8332
|
||||||
|
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE
|
if [ $ENABLE_RPC == 1 ]
|
||||||
|
then
|
||||||
|
/app/bitcoind -datadir=/data -server -txindex=$TXINDEX -prune=$PRUNE -rest -rpcallowip=0.0.0.0 -rpcuser=$USER -rpcpass=$PASS
|
||||||
|
else
|
||||||
|
/app/bitcoind -datadir=/data -txindex=$TXINDEX -prune=$PRUNE
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue