From 8ccdb21bcd4333097d1579382742f5b9651b55f6 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 6 Jul 2022 18:02:51 -0700 Subject: [PATCH] Flesh out nginx stack --- server/config/nginx/docker-compose.yml | 29 +++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/server/config/nginx/docker-compose.yml b/server/config/nginx/docker-compose.yml index 6bfc22b..b2306f6 100644 --- a/server/config/nginx/docker-compose.yml +++ b/server/config/nginx/docker-compose.yml @@ -1,14 +1,33 @@ version: '3' services: - nginx: + nginx_insecure: image: nginx - container_name: nginx_test + container_name: nginx_insecure networks: - web labels: - - traefik.http.routers.nginx.rule=Host(`nginx.jafner.net`) - - traefik.http.routers.nginx.tls.certresolver=lets-encrypt - #- traefik.http.routers.nginx.middlewares=authentik@file,securityheaders@file + - 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 + labels_auth: + - 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 + + nginx: + image: nginx + container_name: nginx_secure + networks: + - web + labels_secure: + - 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 networks: web: