Skip to content

Commit 17ea197

Browse files
committed
docker-compose option added
1 parent 2a1eca7 commit 17ea197

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ or
4141
http://localhost:8002/?url=http://petstore.swagger.io/v2/swagger.json
4242
```
4343

44+
### Running from docker
45+
46+
Running the docker
47+
48+
```
49+
docker-compose up
50+
```
51+
52+
Using the service from docker
53+
54+
```
55+
http://$(docker-machine ip default):8080/?url=http://petstore.swagger.io/v2/swagger.json
56+
```
57+
4458
---
4559
<img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/>
4660

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
swagger-validator:
2+
build: .
3+
ports:
4+
- 8080:8080

0 commit comments

Comments
 (0)