Add desired ports to docker-compose.override.yml:
version: "3"
services:
cache:
ports:
- 81:80
- 444:443
To run:
docker-compose up -d
docker run -d --name imaginary h2non/imaginary:1.2.4 -concurrency 10 -enable-url-source docker run -d -p80:80 --link imaginary gielfeldt/imaginary-nginx
See usage at https://github.com/h2non/imaginary
curl -I 'http://localhost:<port>/thumbnail?width=640&quality=95&url=https://homepages.cae.wisc.edu/~ece533/images/baboon.png'