2023-11-04 22:09:58 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
name: traefik
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
build: .
|
|
|
|
container_name: hfbz-nginx
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2023-11-04 23:06:33 +08:00
|
|
|
- traefik.http.routers.hfbz-nginx.rule=Host(`xn--fiqa592br0dm3gfp6c.com`, `www.xn--fiqa592br0dm3gfp6c.com`)
|
|
|
|
- traefik.http.routers.hfbz-nginx.entrypoints=web,websecure
|
2023-11-04 22:29:42 +08:00
|
|
|
# - traefik.http.routers.hfbz-nginx.tls.certresolver=letsencrypt
|
|
|
|
# - traefik.http.routers.hfbz-nginx.middlewares=CORS@file
|
2023-11-04 22:09:58 +08:00
|
|
|
networks:
|
|
|
|
- traefik
|