Files
Homelab/docker/nginx/compose.yaml
2025-03-05 10:47:20 +02:00

35 lines
1.4 KiB
YAML

services:
web:
image: nginx:latest
container_name: jimsgarage
volumes:
- /gurulandia/data/nginx/templates:/etc/nginx/templates
- /gurulandia/data/nginx/web:/usr/share/nginx/html
environment:
- NGINX_HOST=nginx.lab.gurulandia.eu
- NGINX_PORT=80
ports:
- 8089:80
labels:
- "traefik.enable=true"
#- "traefik.http.routers.nginx.entrypoints=http"
#- "traefik.http.routers.nginx.rule=Host(`nginx.jimsgarage.co.uk`)"
#- "traefik.http.middlewares.nginx-https-redirect.redirectscheme.scheme=https"
#- "traefik.http.routers.nginx.middlewares=nginx-https-redirect"
- "traefik.http.routers.nginx-secure.entrypoints=https"
- "traefik.http.routers.nginx-secure.rule=Host(`nginx.lab.gurulandia.eu`)"
#- "traefik.http.routers.nginx-secure.tls=true"
#- "traefik.http.routers.nginx-secure.service=nginx"
- "traefik.http.services.nginx.loadbalancer.server.port=80"
#- "traefik.http.routers.nginx-secure.middlewares=chain-no-auth@file"
#- "traefik.http.routers.nginx-secure.middlewares=chain-authentik@file" #add this to any container you want to use the Authentik web proxy
- "traefik.http.routers.nginx-secure.middlewares=middlewares-authentik@file" #add this to any container you want to use the Authentik web proxy
# - "traefik.docker.network=proxy"
networks:
proxy:
security_opt:
- no-new-privileges:true
networks:
proxy:
external: true