Add BACKEND_API and ELECTRS_API_URL ENV lines

Adds BACKEND_API and ELECTRS_API_URL environment variables which will be populated into backend/mempool-config.json on startup.

This will allow docker users to easily switch to electrs mode and specify a server if they have a need to do so.
This commit is contained in:
rbrooklyn 2020-02-16 10:20:36 +00:00 committed by GitHub
parent 727179037e
commit dbf3ac4a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ ENV BITCOIN_NODE_PORT 8332
ENV BITCOIN_NODE_USER bitcoinuser ENV BITCOIN_NODE_USER bitcoinuser
ENV BITCOIN_NODE_PASS bitcoinpass ENV BITCOIN_NODE_PASS bitcoinpass
ENV TX_PER_SECOND_SPAN_SECONDS 150 ENV TX_PER_SECOND_SPAN_SECONDS 150
ENV BACKEND_API bitcoind
ENV ELECTRS_API_URL https://www.blockstream.info/api
RUN cd /mempool.space/frontend/ && \ RUN cd /mempool.space/frontend/ && \
npm run build && \ npm run build && \