From d3163fa5790b19a4f1a920238aac933ac88b9d9d Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 18 Oct 2021 17:40:24 +0800 Subject: [PATCH] add imaginary --- README.md | 1 + imaginary/README.md | 14 ++++++++++++++ imaginary/docker-compose.yml | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 imaginary/README.md create mode 100644 imaginary/docker-compose.yml diff --git a/README.md b/README.md index cc8dd5d..d89881a 100644 --- a/README.md +++ b/README.md @@ -335,6 +335,7 @@ A collection of delicious docker recipes. - [x] gogs/gogs :cn: - [x] gotify/server - [x] haproxy +- [x] h2non/imaginary - [x] jellyfin/jellyfin - [x] jenkins - [x] inbound-agent diff --git a/imaginary/README.md b/imaginary/README.md new file mode 100644 index 0000000..08ecf33 --- /dev/null +++ b/imaginary/README.md @@ -0,0 +1,14 @@ +imaginary +========= + +[Imaginary][1] is a fast HTTP microservice written in Go for high-level image +processing backed by bimg and libvips. + +## up and running + +```bash +$ docker-compose up -d +$ http -d -o cat.png :9000/flop url==https://github.githubassets.com/images/modules/logos_page/Octocat.png +``` + +[1]: https://github.com/h2non/imaginary diff --git a/imaginary/docker-compose.yml b/imaginary/docker-compose.yml new file mode 100644 index 0000000..0326e65 --- /dev/null +++ b/imaginary/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.8" +services: + imaginary: + image: h2non/imaginary + command: -p 9000 -cors -enable-url-source -mount /data + ports: + - "9000:9000" + volumes: + - ./data:/data + restart: unless-stopped