Compare commits

...

1 Commits

Author SHA1 Message Date
cfc695c591 Added traefik labels 2022-04-05 15:45:10 +02:00

View File

@@ -6,8 +6,24 @@ services:
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 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: networks:
- reverseproxy_proxynet - proxy
networks:
- proxy
restart: unless-stopped restart: unless-stopped
ports: ports:
- 5050:5000 - 5050:5000
@@ -18,6 +34,6 @@ services:
retries: 3 retries: 3
networks: networks:
reverseproxy_proxynet: proxy:
external: true external: true