From 1c1647103b7e2892d77a434369270e6400852338 Mon Sep 17 00:00:00 2001 From: ayrelia1 Date: Mon, 29 Jul 2024 14:23:51 +0300 Subject: [PATCH] upd --- docker-compose.yml | 11 +++++++++++ nginx/nginx.conf | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d5bbf9d..4983068 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,5 +39,16 @@ services: - .:/app - ./logs:/app/logs + nginx: + image: nginx:latest + restart: always + ports: + - "80:80" + volumes: + - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro + depends_on: + - site + + volumes: postgres-data: diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 63ed1e4..dbda337 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -9,10 +9,10 @@ events { http { server { listen 80; - server_name fckngdev.space; + server_name localhost; location / { - proxy_pass http://87.251.87.90:8004/; + proxy_pass http://site:8004/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;