Skip to content

Commit acb57d2

Browse files
committed
2 parents 858271b + 56ca78a commit acb57d2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Run traefik rootless, distroless and secure by default!
99

1010
Traefik (pronounced traffic) is a modern HTTP reverse proxy and load balancer that makes deploying microservices easy.
1111

12+
![DASHBOARD](https://github.com/11notes/docker-traefik/blob/master/img/Dashboard.png?raw=true)
13+
1214
# SYNOPSIS 📖
1315
**What can I do with this?** Run the prefer IaC reverse proxy distroless and rootless for maximum security.
1416

@@ -66,6 +68,7 @@ services:
6668
image: "11notes/traefik:3.5.0"
6769
read_only: true
6870
labels:
71+
# read Traefiks own labels
6972
- "traefik.enable=true"
7073

7174
# example on how to secure the traefik dashboard and api
@@ -81,6 +84,9 @@ services:
8184
- "traefik.http.middlewares.default-ratelimit.ratelimit.burst=120"
8285
- "traefik.http.middlewares.default-ratelimit.ratelimit.period=1s"
8386

87+
# default CSP
88+
- "traefik.http.middlewares.default-csp.headers.contentSecurityPolicy=default-src 'self' blob: data: 'unsafe-inline'"
89+
8490
# default allowlist
8591
- "traefik.http.middlewares.default-ipallowlist-RFC1918.ipallowlist.sourcerange=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
8692

@@ -108,6 +114,7 @@ services:
108114
TZ: "Europe/Zurich"
109115
command:
110116
# ping is needed for the health check to work!
117+
- "--ping=true"
111118
- "--ping.terminatingStatusCode=204"
112119
- "--global.checkNewVersion=false"
113120
- "--global.sendAnonymousUsage=false"
@@ -120,10 +127,10 @@ services:
120127
- "--providers.docker.exposedByDefault=false"
121128
- "--providers.file.directory=/traefik/var"
122129
- "--entrypoints.http.address=:80"
123-
- "--entrypoints.http.http.middlewares=default-errors,default-ratelimit,default-ipallowlist-RFC1918"
130+
- "--entrypoints.http.http.middlewares=default-errors,default-ratelimit,default-ipallowlist-RFC1918,default-csp"
124131
- "--entrypoints.https.address=:443"
125132
- "--entrypoints.https.http.tls=true"
126-
- "--entrypoints.https.http.middlewares=default-errors,default-ratelimit,default-ipallowlist-RFC1918"
133+
- "--entrypoints.https.http.middlewares=default-errors,default-ratelimit,default-ipallowlist-RFC1918,default-csp"
127134
# disable upstream HTTPS certificate checks (https > https)
128135
- "--serversTransport.insecureSkipVerify=true"
129136
- "--experimental.plugins.rewriteResponseHeaders.moduleName=github.com/jamesmcroft/traefik-plugin-rewrite-response-headers"
@@ -246,4 +253,4 @@ docker pull quay.io/11notes/traefik:3.5.0
246253
# ElevenNotes™️
247254
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the [releases](https://github.com/11notes/docker-traefik/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-traefik/issues), thanks. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-traefik/discussions) instead of an issue. You can find all my other repositories on [github](https://github.com/11notes?tab=repositories).
248255
249-
*created 24.07.2025, 09:10:41 (CET)*
256+
*created 24.07.2025, 22:28:18 (CET)*

0 commit comments

Comments
 (0)