Merge pull request #132 from bfirsh/docker-development-environment

Add Docker development environment
This commit is contained in:
Roman Hotsiy 2016-11-01 23:32:40 +02:00 committed by GitHub
commit 4b6cc2ea79
2 changed files with 10 additions and 0 deletions

View File

@ -140,3 +140,5 @@ Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
- Start the server
`npm start`
- 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