Update traefik labels

see https://cloud.gnous.fr/apps/deck/#/board/4/card/196
This commit is contained in:
thopic 2023-02-01 18:38:58 +01:00
parent af1fba33cb
commit 1001db0dfe
Signed by: thopic
GPG Key ID: 292DBBF0B54AD4C5

View File

@ -12,15 +12,7 @@ services:
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.middlewares.mail-redirect-websecure.redirectscheme.scheme=https
- traefik.http.routers.mail-http.middlewares=mail-redirect-websecure
- traefik.http.routers.mail-http.rule=Host(`${MAILCOW_HOSTNAME}`)
- traefik.http.routers.mail-http.entrypoints=web
- traefik.http.routers.mail-https.rule=Host(`${MAILCOW_HOSTNAME}`)
- traefik.http.routers.mail-https.entrypoints=websecure
- traefik.http.routers.mail-https.tls=true
- traefik.http.routers.mail-https.tls.certresolver=myhttpchallenge
- traefik.http.services.mail.loadbalancer.server.port=80
- traefik.http.routers.mail.rule=Host(`${MAILCOW_HOSTNAME}`)
- "co.elastic.logs/module=nginx"
- "co.elastic.logs/fileset=access"