Last active
May 10, 2018 09:40
-
-
Save reiven/aa175b7eec3c68e1aa49e0f47dd3805d to your computer and use it in GitHub Desktop.
Docker compose for Parity Ethereum node + Block explorer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
parity-local: | |
image: ethcore/parity:v1.6.6 | |
working_dir: /parity/ | |
command: --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors * --dapps-interface 0.0.0.0 --dapps-hosts all --ui-interface 0.0.0.0 --ui-no-validation --chain dev | |
ports: | |
- 8545:8545 | |
- 8080:8080 | |
- 8180:8180 | |
volumes: | |
- ./paritydata:/root/.local | |
explorer: | |
build: . | |
ports: | |
- "8000:8000" | |
depends_on: | |
- parity-local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:alpine | |
WORKDIR /app | |
RUN apk add --no-cache make gcc g++ git bash | |
RUN git clone https://github.com/carsenk/explorer.git | |
RUN cd explorer && npm install | |
WORKDIR /app/explorer | |
RUN sed -ie 's/localhost/0.0.0.0/g' package.json | |
EXPOSE 8000 | |
CMD npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment