Permalink
Browse files

Update Docker image and documentation

  • Loading branch information...
kunalkapadia committed Jul 29, 2017
1 parent f0c32cc commit e9390f5b28517621ac13eaee0252fc09bed98d57
Showing with 15 additions and 5 deletions.
  1. +2 −2 Dockerfile
  2. +12 −2 README.md
  3. +1 −1 docker-compose.yml
View
@@ -1,5 +1,5 @@
# take default image of node boron i.e node 6.x
FROM node:6.10.1
# Use latest node version 8.x
FROM node:8
MAINTAINER Kunal Kapadia <kunalkapadia12@gmail.com>
View
@@ -147,12 +147,22 @@ Get code coverage summary on executing `yarn test`
## Docker
#### Using Docker Compose for Development
```sh
# Using Docker Compose for Development
# service restarts on file change
1. bash bin/development.sh
bash bin/development.sh
```
#### Building and running without Docker Compose
```bash
# To use this option you need to make sure mongodb is listening on port 27017
# Build docker
docker build -t express-mongoose-es6-rest-api .
# Run docker
docker run -p 4040:4040 express-mongoose-es6-rest-api
```
## A Boilerplate-only Option
View
@@ -33,6 +33,6 @@ services:
links:
- mongo
mongo:
image: "mongo:3.4.2"
image: "mongo:3.4"
ports:
- "27017:27017"

0 comments on commit e9390f5

Please sign in to comment.