♻️ Simplify Traefik labels in services (#139)
This commit is contained in:

committed by
GitHub

parent
baf584a6cd
commit
7c2c2276d9
@@ -8,11 +8,8 @@ services:
|
|||||||
- traefik.port=5050
|
- traefik.port=5050
|
||||||
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
||||||
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
||||||
# Traefik service that listens to HTTP
|
- traefik.frontend.entryPoints=http,https
|
||||||
- traefik.redirectorservice.frontend.entryPoints=http
|
- traefik.frontend.redirect.entryPoint=https
|
||||||
- traefik.redirectorservice.frontend.redirect.entryPoint=https
|
|
||||||
# Traefik service that listens to HTTPS
|
|
||||||
- traefik.webservice.frontend.entryPoints=https
|
|
||||||
proxy:
|
proxy:
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
@@ -25,18 +22,15 @@ services:
|
|||||||
- traefik.port=80
|
- traefik.port=80
|
||||||
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
||||||
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
||||||
# Traefik service that listens to HTTP
|
- traefik.frontend.entryPoints=http,https
|
||||||
- traefik.servicehttp.frontend.entryPoints=http
|
- traefik.frontend.redirect.entryPoint=https
|
||||||
- traefik.servicehttp.frontend.redirect.entryPoint=https
|
|
||||||
# Traefik service that listens to HTTPS
|
|
||||||
- traefik.servicehttps.frontend.entryPoints=https
|
|
||||||
# Uncomment the config line below to detect and redirect www to non-www (or the contrary)
|
# Uncomment the config line below to detect and redirect www to non-www (or the contrary)
|
||||||
# The lines above for traefik.frontend.rule are needed too
|
# The lines above for traefik.frontend.rule are needed too
|
||||||
# - "traefik.servicehttps.frontend.redirect.regex=^https?://(www.)?(${DOMAIN})/(.*)"
|
# - "traefik.frontend.redirect.regex=^https?://(www.)?(${DOMAIN})/(.*)"
|
||||||
# To redirect from non-www to www un-comment the line below
|
# To redirect from non-www to www un-comment the line below
|
||||||
# - "traefik.servicehttps.frontend.redirect.replacement=https://www.${DOMAIN}/$$3"
|
# - "traefik.frontend.redirect.replacement=https://www.${DOMAIN}/$$3"
|
||||||
# To redirect from www to non-www un-comment the line below
|
# To redirect from www to non-www un-comment the line below
|
||||||
# - "traefik.servicehttps.frontend.redirect.replacement=https://${DOMAIN}/$$3"
|
# - "traefik.frontend.redirect.replacement=https://${DOMAIN}/$$3"
|
||||||
flower:
|
flower:
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
@@ -45,11 +39,8 @@ services:
|
|||||||
- traefik.port=5555
|
- traefik.port=5555
|
||||||
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
- traefik.tags=${TRAEFIK_PUBLIC_TAG}
|
||||||
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
- traefik.docker.network=${TRAEFIK_PUBLIC_NETWORK}
|
||||||
# Traefik service that listens to HTTP
|
- traefik.frontend.entryPoints=http,https
|
||||||
- traefik.redirectorservice.frontend.entryPoints=http
|
- traefik.frontend.redirect.entryPoint=https
|
||||||
- traefik.redirectorservice.frontend.redirect.entryPoint=https
|
|
||||||
# Traefik service that listens to HTTPS
|
|
||||||
- traefik.webservice.frontend.entryPoints=https
|
|
||||||
backend:
|
backend:
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
|
Reference in New Issue
Block a user