diff --git a/setup/.env b/setup/.env index 47db5c89..9a8293fe 100644 --- a/setup/.env +++ b/setup/.env @@ -1,5 +1,5 @@ # Hostname passed to Traefik -HOSTNAME=setup.mailu.io +ADDRESS=setup.mailu.io # Current release RELEASE=test diff --git a/setup/docker-compose.yml b/setup/docker-compose.yml index 5a16e5b5..7c31d2cd 100644 --- a/setup/docker-compose.yml +++ b/setup/docker-compose.yml @@ -16,7 +16,7 @@ services: labels: - traefik.enable=true - traefik.port=80 - - traefik.main.frontend.rule=Host:${HOSTNAME};PathPrefix:/master/ + - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/master/ depends_on: - redis @@ -32,8 +32,8 @@ services: - traefik.port=80 - traefik.root.frontend.redirect.regex=.* - traefik.root.frontend.redirect.replacement=/${RELEASE}/ - - traefik.root.frontend.rule=Host:${HOSTNAME};PathPrefix:/ - - traefik.main.frontend.rule=Host:${HOSTNAME};PathPrefix:/${RELEASE}/ + - traefik.root.frontend.rule=Host:${ADDRESS};PathPrefix:/ + - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/${RELEASE}/ depends_on: - redis