mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
Add Docker development environment
This commit is contained in:
parent
6b2186ba9a
commit
c1de34703a
|
@ -139,3 +139,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