Nach Dokumentation angepasst: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
This commit is contained in:
parent
23879cc7f9
commit
15893104c4
|
|
@ -1,8 +1,55 @@
|
||||||
[api]
|
# [api]
|
||||||
debug = false
|
# debug = false
|
||||||
dashboard = true
|
# dashboard = true
|
||||||
logLevel = "DEBUG"
|
# logLevel = "DEBUG"
|
||||||
|
|
||||||
|
# defaultEntryPoints = ["https", "http"]
|
||||||
|
|
||||||
|
# [entryPoints]
|
||||||
|
# [entryPoints.http]
|
||||||
|
# address = ":80"
|
||||||
|
# [entryPoints.http.redirect]
|
||||||
|
# entryPoint = "https"
|
||||||
|
# [entryPoints.http.auth.basic]
|
||||||
|
# users = ["McSeeno:$2y$13$maYBYazCRDGmcKdSy/QA0eWBUEIpobxcUy.z68fnifcpoCqWm18wW"]
|
||||||
|
# [entryPoints.https]
|
||||||
|
# address = ":443"
|
||||||
|
# [entryPoints.https.auth.basic]
|
||||||
|
# users = ["McSeeno:$2y$13$maYBYazCRDGmcKdSy/QA0eWBUEIpobxcUy.z68fnifcpoCqWm18wW"]
|
||||||
|
# [entryPoints.https.tls]
|
||||||
|
|
||||||
|
# [retry]
|
||||||
|
|
||||||
|
# [docker]
|
||||||
|
# endpoint = "unix:///var/run/docker.sock"
|
||||||
|
# domain = "uvnsvdjwhkosuuub.myfritz.net"
|
||||||
|
# watch = true
|
||||||
|
# exposedByDefault = false
|
||||||
|
|
||||||
|
# [acme]
|
||||||
|
# email = "regs@mcseeno.de"
|
||||||
|
# storage = "acme.json"
|
||||||
|
# entryPoint = "https"
|
||||||
|
# onHostRule = true
|
||||||
|
# # [[acme.domains]]
|
||||||
|
# # main = "uvnsvdjwhkosuuub.myfritz.net"
|
||||||
|
# [acme.httpChallenge]
|
||||||
|
# entryPoint = "http"
|
||||||
|
|
||||||
|
# [frontends]
|
||||||
|
# [frontends.dokuwiki]
|
||||||
|
# backend = "dokuwiki"
|
||||||
|
# [frontends.dokuwiki.routes.wiki]
|
||||||
|
# rule = "Host:localhost,192.168.2.79,uvnsvdjwhkosuuub.myfritz.net;Path:/wiki"
|
||||||
|
|
||||||
|
# [backends]
|
||||||
|
# [backends.dokuwiki]
|
||||||
|
# [backends.dokuwiki.servers.wiki]
|
||||||
|
# url = "http://172.17.0.2:80"
|
||||||
|
|
||||||
|
debug = false
|
||||||
|
|
||||||
|
logLevel = "ERROR"
|
||||||
defaultEntryPoints = ["https","http"]
|
defaultEntryPoints = ["https","http"]
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
|
|
@ -10,12 +57,8 @@ defaultEntryPoints = ["https", "http"]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
[entryPoints.http.redirect]
|
[entryPoints.http.redirect]
|
||||||
entryPoint = "https"
|
entryPoint = "https"
|
||||||
[entryPoints.http.auth.basic]
|
|
||||||
users = ["McSeeno:$2y$13$maYBYazCRDGmcKdSy/QA0eWBUEIpobxcUy.z68fnifcpoCqWm18wW"]
|
|
||||||
[entryPoints.https]
|
[entryPoints.https]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
[entryPoints.https.auth.basic]
|
|
||||||
users = ["McSeeno:$2y$13$maYBYazCRDGmcKdSy/QA0eWBUEIpobxcUy.z68fnifcpoCqWm18wW"]
|
|
||||||
[entryPoints.https.tls]
|
[entryPoints.https.tls]
|
||||||
|
|
||||||
[retry]
|
[retry]
|
||||||
|
|
@ -31,19 +74,5 @@ email = "regs@mcseeno.de"
|
||||||
storage = "acme.json"
|
storage = "acme.json"
|
||||||
entryPoint = "https"
|
entryPoint = "https"
|
||||||
onHostRule = true
|
onHostRule = true
|
||||||
# [[acme.domains]]
|
|
||||||
# main = "uvnsvdjwhkosuuub.myfritz.net"
|
|
||||||
[acme.httpChallenge]
|
[acme.httpChallenge]
|
||||||
entryPoint = "http"
|
entryPoint = "http"
|
||||||
|
|
||||||
[frontends]
|
|
||||||
[frontends.dokuwiki]
|
|
||||||
backend = "dokuwiki"
|
|
||||||
[frontends.dokuwiki.routes.wiki]
|
|
||||||
rule = "Host:localhost,192.168.2.79,uvnsvdjwhkosuuub.myfritz.net;Path:/wiki"
|
|
||||||
|
|
||||||
[backends]
|
|
||||||
[backends.dokuwiki]
|
|
||||||
[backends.dokuwiki.servers.wiki]
|
|
||||||
url = "http://172.17.0.2:80"
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ version: '2'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
traefik:
|
traefik:
|
||||||
|
|
@ -17,15 +18,15 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
devices:
|
|
||||||
- "/dev/dvb:/dev/dvb"
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8080:8080"
|
# - "8080:8080"
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/traefik/config/traefik.toml:/etc/traefik/traefik.toml
|
- /docker/traefik/config/traefik.toml:/etc/traefik/traefik.toml
|
||||||
|
- /docker/traefik/config/acme.json:/acme.json
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
container_name: traefik
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue