mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 21:40:32 +03:00
Merge pull request #132 from bfirsh/docker-development-environment
Add Docker development environment
This commit is contained in:
commit
4b6cc2ea79
|
@ -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
8
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user