Skip to content

Instantly share code, notes, and snippets.

@reiven
Last active May 10, 2018 09:40
Show Gist options
  • Save reiven/aa175b7eec3c68e1aa49e0f47dd3805d to your computer and use it in GitHub Desktop.
Save reiven/aa175b7eec3c68e1aa49e0f47dd3805d to your computer and use it in GitHub Desktop.
Docker compose for Parity Ethereum node + Block explorer
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
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