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

34 lines
970 B
YAML
Raw Normal View History

2022-07-06 17:56:52 -07:00
version: '3'
services:
2022-07-06 18:02:51 -07:00
nginx_insecure:
2022-07-06 17:56:52 -07:00
image: nginx
2022-07-06 18:02:51 -07:00
container_name: nginx_insecure
2022-07-06 17:56:52 -07:00
networks:
- web
labels:
2022-07-06 18:02:51 -07:00
- traefik.http.routers.nginx-insecure.rule=Host(`insecure.nginx.jafner.net`)
- traefik.http.routers.nginx-insecure.tls.certresolver=lets-encrypt
nginx_auth:
image: nginx
container_name: nginx_auth
networks:
- web
2022-07-06 18:03:36 -07:00
labels:
2022-07-06 18:02:51 -07:00
- traefik.http.routers.nginx-auth.rule=Host(`auth.nginx.jafner.net`)
- traefik.http.routers.nginx-auth.tls.certresolver=lets-encrypt
- traefik.http.routers.nginx-auth.middlewares=authentik@file
2022-07-06 18:04:28 -07:00
nginx_secure:
2022-07-06 18:02:51 -07:00
image: nginx
container_name: nginx_secure
networks:
- web
2022-07-06 18:03:36 -07:00
labels:
2022-07-06 18:02:51 -07:00
- traefik.http.routers.nginx-secure.rule=Host(`secure.nginx.jafner.net`)
- traefik.http.routers.nginx-secure.tls.certresolver=lets-encrypt
- traefik.http.routers.nginx-secure.middlewares=securityheaders@file
2022-07-06 17:56:52 -07:00
networks:
web:
external: true