Add traefik (#1916)
* Add mosquitto broker * Add documetation to mosquitto * Add traefik
This commit is contained in:

committed by
Shao Yu-Lung (Allen)

parent
d27f4368ee
commit
eb0c941313
7
traefik/Dockerfile
Normal file
7
traefik/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM traefik:1.7.5-alpine
|
||||
|
||||
LABEL maintainer="Luis Coutinho <luis@luiscoutinho.pt>"
|
||||
|
||||
COPY traefik.toml acme.json /
|
||||
|
||||
RUN chmod 600 /acme.json
|
0
traefik/acme.json
Normal file
0
traefik/acme.json
Normal file
23
traefik/traefik.toml
Normal file
23
traefik/traefik.toml
Normal file
@ -0,0 +1,23 @@
|
||||
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"
|
Reference in New Issue
Block a user