Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,7 @@ To configure your chain, we use environment variables.
* RPC_PASSWORD: 79pgKQusiH3VDVpyzsM6e3kRz6gWNctAwgJvymG3iiuz
* RPC_ALLOW_IP: 0.0.0.0/0.0.0.0
* MASTERNODE: masternode # IP address of the master node, or a docker compose link. Don't forget the links section!

### Multichain Web Demo

[Multichain Web Demo](https://github.com/MultiChain/multichain-web-demo) is installed on the Masternode and is available at [http://localhost:8080/multichain-web-demo](http://localhost:8080/multichain-web-demo)
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
expose:
- 7557
- 8002
ports:
- 8080:80
environment:
CHAINNAME: MyChain
NETWORK_PORT: 7557
Expand Down Expand Up @@ -49,6 +51,8 @@ services:
- 2750
- 7557
- 8002
ports:
- 2750:2750
environment:
CHAINNAME: MyChain
NETWORK_PORT: 7557
Expand Down
7 changes: 7 additions & 0 deletions master/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM kunstmaan/base-multichain
MAINTAINER Kunstmaan

RUN apt-get update \
&& apt-get install -q -y git apache2 php \
&& service apache2 start \
&& apt-get install -y php-bcmath php-bz2 php-intl php-gd php-mbstring php-mcrypt php-zip php-curl \
&& apt-get install -y libapache2-mod-php \
&& cd /var/www/html && git clone https://github.com/MultiChain/multichain-web-demo.git

COPY ./runchain.sh /root/runchain.sh
COPY ./blocknotify.sh /root/blocknotify.sh
RUN chmod a+x /root/runchain.sh
Expand Down
10 changes: 10 additions & 0 deletions master/runchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,14 @@ fi

cp /root/.multichain/$CHAINNAME/multichain.conf /root/.multichain/multichain.conf

cat << EOF > /var/www/html/multichain-web-demo/config.txt
default.name=$CHAINNAME
default.rpchost=127.0.0.1
default.rpcport=$RPC_PORT
default.rpcuser=$RPC_USER
default.rpcpassword=$RPC_PASSWORD
EOF

service apache2 start

multichaind -txindex -shrinkdebugfilesize -printtoconsole $CHAINNAME