version: "3.8" networks: traefik: name: traefik external: true services: nginx: build: . container_name: hfbz-nginx restart: always labels: - traefik.enable=true - traefik.http.routers.hfbz-nginx.rule=Host(`中国原神中学.com`, `www.中国原神中学.com`) - traefik.http.routers.hfbz-nginx.entrypoints=web # - traefik.http.routers.hfbz-nginx.tls.certresolver=letsencrypt # - traefik.http.routers.hfbz-nginx.middlewares=CORS@file networks: - traefik