Skip to content

Commit

Permalink
Add Docker and Docker compose setup options
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Marchand committed Oct 21, 2017
1 parent a22a944 commit b93b0eb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM node:8.7.0-onbuild

EXPOSE 3000
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ This blockchain explorer is intended for private Ethereum chains. As it does not

## Getting started

### Setup from source

Supported OS: Ubuntu 16.04

Supported Ethereum backend nodes: Parity (Geth is currently not supported as it does not allow account and received/sent tx enumeration)
Expand All @@ -47,3 +49,24 @@ Supported Ethereum backend nodes: Parity (Geth is currently not supported as it
6. Rename `config.js.example` into `config.js` and adjust the file to your local environment
7. Start the explorer: `npm start`
8. Browse to `http://localhost:3000`

### Setup using docker

Build then run the container
```bash
docker build -t etherchain-light .
docker run -p 3000:3000 etherchain-light
```

Or directly bind the config.js file to avoid rebuilding the image
```bash
docker run -p "3000:3000" \
-v "$(pwd)/config.js":/usr/src/app/config.js \
etherchain-light
```

### Setup using docker-compose

```bash
docker-compose up
```
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2.0'

services:
etherchain-light:
build: .
restart: always
ports:
- 3000:3000

0 comments on commit b93b0eb

Please sign in to comment.