shroomlife / docker-https-proxy

:whale: easy to use reverse proxy docker container to proxy requests across your docker containers supporting https/ssl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy Docker HTTP(s) Proxy Build Status

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.

Prerequisites

  • Docker - The containerization service.
  • docker-compose - The orchestration service for your environment.

Getting Started

Using Docker Hub

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

Using Docker Compose

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.

Using Custom Redirect Port on Proxy

The default port for the connection to your containers is 80. You can set the environment variable REDIRECT_PORT to a different port.

About

:whale: easy to use reverse proxy docker container to proxy requests across your docker containers supporting https/ssl


Languages

Language:JavaScript 96.6%Language:Dockerfile 3.4%