update traefik to v2.2

This commit is contained in:
Mahmoud Elewa
2020-05-31 07:07:05 +00:00
parent 4f7ab34a6b
commit 90ba6df3ad
6 changed files with 39 additions and 32 deletions

View File

@ -1,7 +1,11 @@
FROM traefik:1.7.5-alpine
FROM traefik:v2.2
LABEL maintainer="Luis Coutinho <luis@luiscoutinho.pt>"
COPY traefik.toml acme.json /
WORKDIR /data
RUN chmod 600 /acme.json
RUN touch acme.json
RUN chmod 600 acme.json
VOLUME /data

View File

2
traefik/data/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -1,23 +0,0 @@
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[web]
address = ":8080"
[acme]
email = "email@example.org"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[[acme.domais]]
main = "localhost"