From cbab5652512ae72a1775d6ff138fca9377ac316d Mon Sep 17 00:00:00 2001 From: meftimes Date: Wed, 20 Mar 2024 11:51:45 -0400 Subject: [PATCH] add nginx container --- nginx/nginx.yml | 18 ++++++++++++++++++ nginx/src/index.html | 1 + 2 files changed, 19 insertions(+) create mode 100644 nginx/nginx.yml create mode 100644 nginx/src/index.html diff --git a/nginx/nginx.yml b/nginx/nginx.yml new file mode 100644 index 0000000..150bf21 --- /dev/null +++ b/nginx/nginx.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + client: + image: nginx:latest + container_name: nginx + volumes: + - ./src:/usr/share/nginx/html + networks: + - proxy + labels: + - "traefik.enable=true" + - "traefik.http.routers.nginx.entrypoints=websecure" + - "traefik.http.routers.nginx.rule=Host(`nginx.meftimes.com`)" + - "traefik.http.routers.nginx.middlewares=authelia@docker" +networks: + proxy: + external: true diff --git a/nginx/src/index.html b/nginx/src/index.html new file mode 100644 index 0000000..2f80ea7 --- /dev/null +++ b/nginx/src/index.html @@ -0,0 +1 @@ +

Sample Text