From 263778b846f55500e6c9aa1976dfe2119995f9cf Mon Sep 17 00:00:00 2001 From: Zehka Date: Mon, 6 Jul 2020 10:58:19 +0200 Subject: [PATCH] redirect www subdomain to chaospott.de --- docker-compose.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 20257de..add6d31 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,13 +30,26 @@ services: - ${DATA_ROOT}/static/:/usr/share/nginx/html - ./configs/nginx:/etc/nginx labels: - - traefik.frontend.rule=Host:chaospott.de,www.chaospott.de + - traefik.frontend.rule=Host:chaospott.de - traefik.port=80 - traefik.docker.network=web networks: - extern expose: - 80 + www-redirector: + image: cryptkiddie2/redirector:latest + restart: always + expose: + - 80 + labels: + - traefik.frontend.rule=Host:www.chaospott.de + - traefik.port=80 + - traefik.frontend.passHostHeader=true + environment: + - dest=https://chaospott.de + networks: + extern: networks: extern: