Add Docker development environment

This commit is contained in:
Ben Firshman 2016-11-01 11:56:06 -07:00
parent 6b2186ba9a
commit c1de34703a
No known key found for this signature in database
GPG Key ID: 18296449E36D2F1E
2 changed files with 10 additions and 0 deletions

View File

@ -139,3 +139,5 @@ Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
- Start the server - Start the server
`npm start` `npm start`
- Open `http://localhost:9000` - Open `http://localhost:9000`
Alternatively, Docker can be used by just running `docker-compose up`.

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
dev:
image: node:7
command: sh -c "npm install; npm start -- --host=0.0.0.0"
ports:
- "9000:9000"
volumes:
- "./:/code"
working_dir: /code