www.19yuke2.cn/docker-compose.yml
thehrz d863d8c53c
Some checks failed
CI / Deploy (push) Failing after 6s
pref: update HostRegexp
2024-05-25 13:37:11 +08:00

21 lines
563 B
YAML

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.routers.19yuke2-frontend.tls.certresolver=letsencrypt
- traefik.http.services.19yuke2-frontend.loadbalancer.server.port=80
networks:
- traefik