Sign inSign up

kartoffeltoby/caddy_proxy

By kartoffeltoby

•Updated almost 6 years ago

A Docker Proxy Container vor Proxy http and https stuff

Image
3

3.7K

kartoffeltoby/caddy_proxy repository overview

[![Build Status](https://jenkins.kartoffel-server.com/buildStatus/icon?job=DOCKER⁠ Caddy-Proxy)](https://jenkins.kartoffel-server.com/job/DOCKER⁠ Caddy-Proxy)

⁠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=[email protected]⁠ (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: [email protected]
      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

Tag summary

Content type

Image

Digest

Size

22.6 MB

Last updated

over 9 years ago

docker pull kartoffeltoby/caddy_proxy