Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Shae-ai/docker-nginx-image-resizer

 
 

Repository files navigation

nginx-image-resize

Simple docker container for dynamic image resizing with nginx image_filter module

.env

example

PORT=80
QUALITY=80
IMAGE_HOST=https://{storage_account}.blob.core.windows.net/{container}
NGINX_HOST=localhost
DNS_RESOLVERS=8.8.8.8 8.8.4.4

Build and Run

$ docker-compose build
$ docker-compose up

Usage

In case your .env is as above example.

If you want to get https://{storage_account}.blob.core.windows.net/{container}/your/file/name.jpg just GEThttp://localhost/your/file/name.jpg`

If you want to resize.
just GET http://localhost/500x500/your/file/name.jpg

About

Simple docker container for dynamic image resizing with Nginx image_filter module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 66.4%
  • Dockerfile 33.6%