2023-08-05 11:31:59 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
2023-08-05 13:57:10 +08:00
|
|
|
traefik:
|
|
|
|
name: traefik
|
|
|
|
external: true
|
2023-08-05 11:31:59 +08:00
|
|
|
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
build: ./19yuke2-frontend
|
2023-08-05 13:50:37 +08:00
|
|
|
container_name: 19yuke2-frontend
|
2023-08-05 11:31:59 +08:00
|
|
|
restart: always
|
2023-08-05 13:50:37 +08:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2024-05-25 13:37:11 +08:00
|
|
|
- traefik.http.routers.19yuke2-frontend.rule=HostRegexp(`^(www\.)?19yuke2\.cn$`)
|
2023-08-05 13:50:37 +08:00
|
|
|
- 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
|
2023-08-05 13:57:10 +08:00
|
|
|
networks:
|
|
|
|
- traefik
|