From 46f5f424bcd66426723792cdd68c1d7bc5c5b74d Mon Sep 17 00:00:00 2001 From: philipcheung Date: Mon, 3 Nov 2025 09:05:53 +0800 Subject: [PATCH] docker updated --- docker-compose.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e512260..b4be4ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,25 @@ services: - /app/node_modules networks: - - gitea_network + - traefik-public + - default + labels: + - traefik.enable=true + - traefik.docker.network=traefik-public + - traefik.constraint-label=traefik-public + + - traefik.http.services.healthy-oil-frontend.loadbalancer.server.port=80 + + - traefik.http.routers.healthy-oil-frontend-http.rule=Host(`healthy-oil.develop-cat.com`) + - traefik.http.routers.healthy-oil-frontend-http.entrypoints=http + + - traefik.http.routers.healthy-oil-frontend-https.rule=Host(`healthy-oil.develop-cat.com`) + - traefik.http.routers.healthy-oil-frontend-https.entrypoints=https + - traefik.http.routers.healthy-oil-frontend-https.tls=true + - traefik.http.routers.healthy-oil-frontend-https.tls.certresolver=le + + # Enable redirection for HTTP and HTTPS + - traefik.http.routers.healthy-oil-frontend-http.middlewares=https-redirect networks: - gitea_network: + traefik-public: