A Docker Proxy Container vor Proxy http and https stuff
3.7K
[](https://jenkins.kartoffel-server.com/job/DOCKER Caddy-Proxy)
This is a Docker Container based on Alpine Linux with docker gen and Caddy Server
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)
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
Content type
Image
Digest
Size
22.6 MB
Last updated
over 9 years ago
docker pull kartoffeltoby/caddy_proxy