homelab/server/config/nginx/docker-compose.yml

16 lines
363 B
YAML

version: '3'
services:
nginx:
image: nginx
container_name: nginx_test-jafner-dev
networks:
- web
labels:
- traefik.http.routers.nginx.rule=Host(`test.jafner.dev`)
- traefik.http.routers.nginx.tls.certresolver=lets-encrypt
- traefik.http.routers.nginx.middlewares=traefik-forward-auth
networks:
web:
external: true