From 17ea1978415f826829b4276c2a27f860ccce8670 Mon Sep 17 00:00:00 2001 From: elias hasnat Date: Thu, 24 Mar 2016 11:07:03 +0900 Subject: [PATCH] docker-compose option added --- README.md | 14 ++++++++++++++ docker-compose.yml | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index b1eae79..8ff0c19 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,20 @@ or http://localhost:8002/?url=http://petstore.swagger.io/v2/swagger.json ``` +### Running from docker + +Running the docker + +``` +docker-compose up +``` + +Using the service from docker + +``` +http://$(docker-machine ip default):8080/?url=http://petstore.swagger.io/v2/swagger.json +``` + --- diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..33547bc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,4 @@ +swagger-validator: + build: . + ports: + - 8080:8080