Added traefik labels

This commit is contained in:
Abel Fokkinga 2022-04-05 15:45:10 +02:00
parent 0ce7f36585
commit cfc695c591
Signed by: abel
GPG Key ID: B84FADF9AF5B8D90

View File

@ -6,8 +6,24 @@ services:
deploy:
mode: replicated
replicas: 1
labels:
- "traefik.enable=true"
- "traefik.http.routers.eancodeboek.entrypoints=http"
- "traefik.http.routers.eancodeboek.rule=Host(`eancodeboek.fokkinga.com`)"
- "traefik.http.middlewares.eancodeboek-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.eancodeboek.middlewares=eancodeboek-https-redirect"
- "traefik.http.routers.eancodeboek-secure.entrypoints=https"
- "traefik.http.routers.eancodeboek-secure.rule=Host(`eancodeboek.fokkinga.com`)"
- "traefik.http.routers.eancodeboek-secure.tls=true"
- "traefik.http.routers.eancodeboek-secure.tls.certresolver=cloudflare"
- "traefik.http.routers.eancodeboek-secure.service=eancodeboek"
- "traefik.http.services.eancodeboek.loadbalancer.server.port=5000"
- "traefik.docker.network=proxy"
networks:
- reverseproxy_proxynet
- proxy
networks:
- proxy
restart: unless-stopped
ports:
- 5050:5000
@ -18,6 +34,6 @@ services:
retries: 3
networks:
reverseproxy_proxynet:
proxy:
external: true