From a74223da4a1e27b3b54f40a4b930a4cb212976fb Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 10 Dec 2017 21:11:29 +0330 Subject: [PATCH] docs: add docker deployment --- README.md | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 22d2b7e..d142612 100644 --- a/README.md +++ b/README.md @@ -25,19 +25,44 @@ Possible values for format: `jpeg`,`webp` or `png`. ### Examples -Just change format to `webp` and keep other things same as source: +- Just change format to `webp` and keep other things same as source: `http://cdn.example.com/webp/_/avatars/buffalo.png` -Keep original format (`png`) and set width to `200`: +- Keep original format (`png`) and set width to `200`: `http://cdn.example.com/_/w_200/avatars/buffalo.png` - -Resize to `200x300px` using `embed` method and change format to `jpg`: +- Resize to `200x300px` using `embed` method and change format to `jpg`: `http://cdn.example.com/jpg/s_200_300,embed/avatars/buffalo.png` +## Docker deployment + +Latest docker image is automatically built under [pooya/ipx](https://hub.docker.com/r/pooya/ipx). + +Quick start: + +```bash +docker run \ + -it \ + --rm \ + --volume ./storage:/app/storage:ro \ + --volume ./cache:/app/cache \ + --port 3000:3000 + pooya/ipx +``` + +Using docker-compose: + +```yml + image: pooya/ipx + volumes: + - ./storage:/app/storage:ro + - ./cache:/app/cache + ports: + - 3000:3000 +``` ## Operations -- knotmirror 0.0.1