Added mainnet docker container

This commit is contained in:
Chris Troutner
2019-07-07 13:16:10 -07:00
parent cc5df74b49
commit 8186c8d9d6
3 changed files with 60 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM christroutner/ct-base-ubuntu
MAINTAINER Chris Troutner <chris.troutner@gmail.com>
RUN apt-get update -y
#Set the working directory to be the home directory
WORKDIR /home/safeuser
# Switch to user account.
USER safeuser
# Prep 'sudo' commands.
#RUN echo 'abcd8765' | sudo -S pwd
# Clone the Bitcore repository
WORKDIR /home/safeuser
RUN git clone https://github.com/christroutner/bch-api
WORKDIR /home/safeuser/bch-api
RUN npm install
EXPOSE 3000
COPY start-local-mainnet start-local-mainnet
CMD ["./start-local-mainnet"]
+10
View File
@@ -0,0 +1,10 @@
bch-api:
build: .
dockerfile: Dockerfile
#image: bitcore
container_name: bch-api-main
links:
- mongodb
ports:
- "12400:3000"
restart: always
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
# Harddrive Mainnet full node
export RPC_BASEURL=http://172.17.0.1:8332/
export RPC_USERNAME=bitcoin
export RPC_PASSWORD=password
export ZEROMQ_PORT=28332
export ZEROMQ_URL=172.17.0.1
export NETWORK=mainnet
# Team DO QA Testnet Insight Server
export BITCOINCOM_BASEURL=http://172.17.0.1:12100/api/
# Testnet SLPDB
export SLPDB_URL=https://slpdb.bchdata.cash/
#export SLPDB_URL=http://172.17.0.1:4000/
# Testnet Bitcore Node API
export BITCORE_URL=http://172.17.0.1:12200/
# Testnet Blockbook
export BLOCKBOOK_URL=https://172.17.0.1:9131/
# Allow node.js to make network calls to https using self-signed certificate.
export NODE_TLS_REJECT_UNAUTHORIZED=0
npm start