From c7eaf0382814a23b4bc14e950947f62684fa1815 Mon Sep 17 00:00:00 2001 From: thehrz Date: Sat, 5 Aug 2023 13:50:37 +0800 Subject: [PATCH] ci: update config --- docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f628217..c898a0a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,12 @@ networks: services: frontend: build: ./19yuke2-frontend - ports: - - 80:80 - container_name: 19yuke2-nginx + container_name: 19yuke2-frontend restart: always + labels: + - traefik.enable=true + - traefik.http.routers.19yuke2-frontend.rule=Host(`test.thehrz.net`) + - traefik.http.routers.19yuke2-frontend.entrypoints=web,websecure + - traefik.http.routers.19yuke2-frontend.tls.certresolver=letsencrypt + - traefik.http.services.19yuke2-frontend.loadbalancer.server.port=80