Added traefik labels
This commit is contained in:
parent
0ce7f36585
commit
cfc695c591
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user