From c2646805658877d83b6aa9132110f594ec7bcbdb Mon Sep 17 00:00:00 2001 From: bluepuma77 Date: Thu, 5 Dec 2024 11:22:11 +0100 Subject: [PATCH] Create README.md --- docker-traefik-socket-proxy/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docker-traefik-socket-proxy/README.md diff --git a/docker-traefik-socket-proxy/README.md b/docker-traefik-socket-proxy/README.md new file mode 100644 index 0000000..5615a7b --- /dev/null +++ b/docker-traefik-socket-proxy/README.md @@ -0,0 +1,24 @@ +# docker-traefik-socket-proxy + +Simple `docker-compose.yml` template to run Traefik with a Docker socket proxy and a whoami service with Docker. + +## Features: +- Use nginx as docker-socket-proxy, only allowing relevant GET requests to Docker socket +- Traefik is listening on ports 80 (http) and 443 (https) +- All http requests will be redirected to secure https requests +- Docker services with label `traefik.enable=true` will automatically be discovered by Traefik +- Letsencrypt will automatically generate TLS/SSL certificates for all domains in `Host()` +- Traefik log (`level=INFO`) and access log are enabled to container stdout/stderr +- Traefik dashboard is enabled at `https://traefik.example.com/dashboard/` with user/pass test/test + +## Deployment: + +- Adapt all domain names in `Host()` +- Adapt `acme.email` +- Adapt dashboard username/password +- For production: write logs files to mounted folder on host +- Run `docker compose up -d` + +## Problems: + +- When using Traefik v2, remove line `entrypoints.websecure.asDefault=true`