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