Use ADDRESS instead of HOSTNAME

master
Tim Möhlmann 6 years ago
parent 8ef0493f53
commit 1df3b46454
No known key found for this signature in database
GPG Key ID: 8677988D8072E8DE

@ -1,5 +1,5 @@
# Hostname passed to Traefik # Hostname passed to Traefik
HOSTNAME=setup.mailu.io ADDRESS=setup.mailu.io
# Current release # Current release
RELEASE=test RELEASE=test

@ -16,7 +16,7 @@ services:
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.port=80 - traefik.port=80
- traefik.main.frontend.rule=Host:${HOSTNAME};PathPrefix:/master/ - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/master/
depends_on: depends_on:
- redis - redis
@ -32,8 +32,8 @@ services:
- traefik.port=80 - traefik.port=80
- traefik.root.frontend.redirect.regex=.* - traefik.root.frontend.redirect.regex=.*
- traefik.root.frontend.redirect.replacement=/${RELEASE}/ - traefik.root.frontend.redirect.replacement=/${RELEASE}/
- traefik.root.frontend.rule=Host:${HOSTNAME};PathPrefix:/ - traefik.root.frontend.rule=Host:${ADDRESS};PathPrefix:/
- traefik.main.frontend.rule=Host:${HOSTNAME};PathPrefix:/${RELEASE}/ - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/${RELEASE}/
depends_on: depends_on:
- redis - redis

Loading…
Cancel
Save