Public Repository

Last pushed: a month ago
Short Description
A Docker Proxy Container vor Proxy http and https stuff
Full Description

A Docker Proxy Container vor Proxy http and https stuff

This is a Docker Container based on Alpine Linux with docker gen and Caddy Server

Features:

  • Proxy any Port on any Container to https Potocol with free and automatic Let's Encrypt CA Certs
  • gzip all thrown traffic
  • Copy all Headers from Origin Container
  • Update automatic when a new Container Sporns or Kill

Userguide:

Set up a Volume: -v /var/run/docker.sock:/tmp/docker.sock:ro thats important

**Set up a Storage Volume for the Certs -v /home/certs:/root/.caddy

ENV for the Proxy Container: MAIL=test@test.de (This Mail address is Used for getting Let's Encrypt CA Certs)

ENV for http Container: HTTP_DOMAIN=test.de (In this Case http://test.de point to that Container / Port: 80)

ENV for https Container: HTTPS_DOMAIN=secure.test.de (In this Case https://secure.test.de point to that Container and geht a Let's Encrypt CA SSL Cert / Port <=> HOST_PORT ENV)

ENV for Multiple Ports: HOST_PORT=3000 (In this Case the domain Points to this Port) Combine this with HTTP_DOMAIN or HTTPS_DOMAIN

ENV for https Container: HTTPS_SELF_DOMAIN=secure.test.de (If your target Container has a self-signed Cert but enable a Let's Encrypt CA SSL Cert / Port: 443 | https)

Example docker-composer file:

    Proxy:
      environment:
        MAIL: test@test.de
      image: kartoffeltoby/caddy_proxy:latest
      ports:
      - 443:443
      - 80:80
      volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /home/data/caddy-proxy:/root/.caddy
Docker Pull Command
Owner
kartoffeltoby

Comments (1)
mmscott
a year ago

This is cool. Is there a Dockerfile / repo available to customize it? Thanks!