version: "3.8" networks: traefik: name: traefik external: true services: frontend: build: ./19yuke2-frontend container_name: 19yuke2-frontend restart: always labels: - traefik.enable=true - traefik.http.routers.19yuke2-frontend.rule=HostRegexp(`^(www\.)?19yuke2\.cn$`) - traefik.http.routers.19yuke2-frontend.entrypoints=web,websecure - traefik.http.services.19yuke2-frontend.loadbalancer.server.port=80 networks: - traefik