Docker-Proxy is a simple reverse proxy that routes web traffic to docker containers.
136
Docker-Proxy is a simple reverse proxy that routes web traffic to running docker containers to host ports. It is designed to run in dev/ci environments.
docker run -d -p 80:80 -v /var/run/docker.sock:/var/run/docker.sock --restart=always --name docker-proxy beardedio/docker-proxy --containerized
By default Docker-Proxy with automaticly route traffic based on the containers name when using port 80 inside the container.
To override the domain or port for routing to a container, add these env vars VIRTUAL_HOST &/or VIRTUAL_PORT to the list of enviroment varaibles to your container.
Here is a docker-compose.yml example
version: '3'
services:
apache:
image: beardedio/php-apache:php7
ports:
- 12345
environment:
- VIRTUAL_HOST=cic.test
- VIRTUAL_PORT=12345
- server_env=dev
Content type
Image
Digest
Size
8.8 MB
Last updated
over 7 years ago
docker pull beardedio/docker-proxy