Skip to content

Commit e9390f5

Browse files
committed
Update Docker image and documentation
1 parent f0c32cc commit e9390f5

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# take default image of node boron i.e node 6.x
2-
FROM node:6.10.1
1+
# Use latest node version 8.x
2+
FROM node:8
33

44
MAINTAINER Kunal Kapadia <[email protected]>
55

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,22 @@ Get code coverage summary on executing `yarn test`
147147

148148
## Docker
149149

150+
#### Using Docker Compose for Development
150151
```sh
151-
# Using Docker Compose for Development
152152
# service restarts on file change
153-
1. bash bin/development.sh
153+
bash bin/development.sh
154154
```
155155

156+
#### Building and running without Docker Compose
157+
```bash
158+
# To use this option you need to make sure mongodb is listening on port 27017
159+
160+
# Build docker
161+
docker build -t express-mongoose-es6-rest-api .
162+
163+
# Run docker
164+
docker run -p 4040:4040 express-mongoose-es6-rest-api
165+
```
156166

157167

158168
## A Boilerplate-only Option

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ services:
3333
links:
3434
- mongo
3535
mongo:
36-
image: "mongo:3.4.2"
36+
image: "mongo:3.4"
3737
ports:
3838
- "27017:27017"

0 commit comments

Comments
 (0)