File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
RUN set -ex; \
24
24
mkdir -p /distroless/usr/local/bin; \
25
+ mkdir -p /distroless/plugins-storage; \
25
26
wget -O traefik.tar.gz "https://github.com/traefik/traefik/releases/download/v${APP_VERSION}/traefik_v${APP_VERSION}_linux_${TARGETARCH}${TARGETVARIANT}.tar.gz" ; \
26
27
tar -xzvf traefik.tar.gz; \
27
28
eleven strip ${BUILD_BIN}; \
Original file line number Diff line number Diff line change @@ -92,12 +92,17 @@ services:
92
92
- " --entrypoints.https.address=:443"
93
93
- " --entrypoints.https.http.middlewares=default-errors,default-ratelimit,default-ipallowlist-RFC1918"
94
94
- " --serversTransport.insecureSkipVerify=true" # disable upstream HTTPS certificate checks (https > https)
95
+ - " --experimental.plugins.rewriteResponseHeaders.moduleName=github.com/jamesmcroft/traefik-plugin-rewrite-response-headers"
96
+ - " --experimental.plugins.rewriteResponseHeaders.version=v1.1.2"
97
+ - " --experimental.plugins.geoblock.moduleName=github.com/PascalMinder/geoblock"
98
+ - " --experimental.plugins.geoblock.version=v0.3.2"
95
99
ports :
96
100
- " 80:80/tcp"
97
101
- " 443:443/tcp"
98
102
volumes :
99
103
- " var:/traefik/var"
100
- - " socket-proxy.run:/var/run" # access docket socket via proxy read-only
104
+ - " socket-proxy.run:/var/run" # access docker socket via proxy read-only
105
+ - " plugins:/plugins-storage" # plugins stored as volume because of read-only
101
106
networks :
102
107
backend :
103
108
frontend :
@@ -120,6 +125,7 @@ services:
120
125
121
126
volumes :
122
127
var :
128
+ plugins :
123
129
socket-proxy.run :
124
130
125
131
networks :
You can’t perform that action at this time.
0 commit comments