21 lines
518 B
YAML
21 lines
518 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=Host(`thehrz.net`, `www.thehrz.net`)
|
||
|
- 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
|