From 069ee7518f8bcc8bafdd1485c9564c0027d62126 Mon Sep 17 00:00:00 2001 From: progof <34421475+progof@users.noreply.github.com> Date: Fri, 3 Jan 2025 20:42:20 +0100 Subject: [PATCH] upd --- .nginx/nginx.conf | 13 +++++++++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.nginx/nginx.conf b/.nginx/nginx.conf index 6427dd8..a9128ad 100644 --- a/.nginx/nginx.conf +++ b/.nginx/nginx.conf @@ -25,6 +25,19 @@ http { } } + server { + listen 8080; + server_name mydarkhobby.com www.mydarkhobby.com; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + proxy_pass http://landing:8080/; + } + } + server { listen 443 ssl; server_name altloc.com www.altloc.com; diff --git a/docker-compose.yml b/docker-compose.yml index ff36945..e66a01f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,6 +60,18 @@ services: networks: - dev + landing: + build: + context: ./landing + dockerfile: Dockerfile + target: landing + ports: + - "8080:80" + volumes: + - .nginx/nginx.conf:/etc/nginx/nginx.conf + networks: + - dev + postgres: image: postgis/postgis:14-3.4-alpine restart: always