Lightweight domain redirections with https support
I recently needed to perform some simple domain redirects, and surprise - there is a minimal docker container that is perfect for the job.
docker run -d --restart=always \ -e REDIRECT_TARGET=https://domaintoredirect.biz \ -e VIRTUAL_HOST=www.someotherdomain.com,someotherdomain.com \ -e LETSENCRYPT_HOST=www.someotherdomain.com,someotherdomain.com \ --name=domaintoredirect-biz -p 8080:80 morbz/docker-web-redirect
This works a treat, but does require a few things done first: