thehrz.net/docker-compose.yml
thehrz b612f3656b
All checks were successful
CI / Deploy (push) Successful in 1m32s
pref: update ssl config
2024-08-24 22:16:04 +08:00

20 lines
446 B
YAML

version: "3.8"
networks:
traefik:
name: traefik
external: true
services:
nginx:
build: .
container_name: thehrz-nginx
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.thehrz-nginx.rule=HostRegexp(`^(www\.)?thehrz\.net$`)
- traefik.http.routers.thehrz-nginx.entrypoints=web,websecure
- traefik.http.routers.thehrz-nginx.middlewares=CORS@file
networks:
- traefik