thehrz.net/docker-compose.yml

21 lines
517 B
YAML
Raw Normal View History

2023-08-17 21:22:19 +08:00
version: "3.8"
networks:
traefik:
name: traefik
external: true
services:
nginx:
build: .
container_name: thehrz-nginx
restart: always
labels:
- traefik.enable=true
2024-05-25 13:17:10 +08:00
- traefik.http.routers.thehrz-nginx.rule=HostRegexp(`^(www\.)?thehrz\.net$`)
2023-08-17 21:22:19 +08:00
- traefik.http.routers.thehrz-nginx.entrypoints=web,websecure
- traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt
- traefik.http.routers.thehrz-nginx.middlewares=CORS@file
networks:
- traefik