From 9a3a63c92a9eb2895fffe7208baf71236733374f Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 15:37:24 +0800 Subject: [PATCH] docker --- docker-compose.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2602c2a..43779ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,17 +20,22 @@ services: - traefik.http-allAndOne.loadbalancer.server.port=80 - - traefik.http.routers.allAndOne-http.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) - - traefik.http.routers.allAndOne-http.entrypoints=http + # - traefik.http.routers.allAndOne-http.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) + # - traefik.http.routers.allAndOne-http.entrypoints=http + + # - traefik.http.routers.allAndOne-https.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) + # - traefik.http.routers.allAndOne-https.entrypoints=https + # - traefik.http.routers.allAndOne-https.tls=true + # - traefik.http.routers.allAndOne-https.tls.certresolver=le + + - traefik.basic.frontend.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) + - "traefik.basic.port=3000" + - "traefik.basic.protocol=http" - - traefik.http.routers.allAndOne-https.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) - - traefik.http.routers.allAndOne-https.entrypoints=https - - traefik.http.routers.allAndOne-https.tls=true - - traefik.http.routers.allAndOne-https.tls.certresolver=le # Enable www redirection for HTTP and HTTPS - - traefik.http.routers.allAndOne-https.middlewares=www-redirect - - traefik.http.routers.allAndOne-http.middlewares=https-redirect,www-redirect + # - traefik.http.routers.allAndOne-https.middlewares=www-redirect + # - traefik.http.routers.allAndOne-http.middlewares=https-redirect,www-redirect networks: - traefik-public - default