This is an easy to use HTTP(s) proxy for your docker containers that you can use to have multiple containers running on a single machine and to proxy requests among those containers.
- Docker - The containerization service.
- docker-compose - The orchestration service for your environment.
docker run --name=proxy -d -p 80:80 -p 443:443 shroomlife/docker-https-proxy:latest
🐳 https://hub.docker.com/r/shroomlife/docker-https-proxy
Use the following example docker-compose.yml
file.
version: '3.3'
services:
proxy:
container_name: proxy
image: shroomlife/docker-https-proxy:latest
ports:
- "80:80"
- "443:443"
webserver:
container_name: example.com.proxy
image: httpd:latest
When your server with docker is contacted at example.com
all requests will be proxied to your custom container on port 80.
The default port for the connection to your containers is 80
. You can set the environment variable REDIRECT_PORT
to a different port.