File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 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
3
3
4
4
MAINTAINER Kunal Kapadia <
[email protected] >
5
5
Original file line number Diff line number Diff line change @@ -147,12 +147,22 @@ Get code coverage summary on executing `yarn test`
147
147
148
148
## Docker
149
149
150
+ #### Using Docker Compose for Development
150
151
``` sh
151
- # Using Docker Compose for Development
152
152
# service restarts on file change
153
- 1. bash bin/development.sh
153
+ bash bin/development.sh
154
154
```
155
155
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
+ ```
156
166
157
167
158
168
## A Boilerplate-only Option
Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ services:
33
33
links :
34
34
- mongo
35
35
mongo :
36
- image : " mongo:3.4.2 "
36
+ image : " mongo:3.4"
37
37
ports :
38
38
- " 27017:27017"
You can’t perform that action at this time.
0 commit comments