From 74e61987dc5b99971d4615de1bafb6ca56abee9a Mon Sep 17 00:00:00 2001 From: mfnefd Date: Sun, 3 Nov 2024 20:30:29 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D1=80=D0=B0=D0=B7=D0=BE?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balakhonov_danila_lab_3/docker-compose.yaml | 3 +-- balakhonov_danila_lab_3/nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/balakhonov_danila_lab_3/docker-compose.yaml b/balakhonov_danila_lab_3/docker-compose.yaml index 94f2127..cffaa51 100644 --- a/balakhonov_danila_lab_3/docker-compose.yaml +++ b/balakhonov_danila_lab_3/docker-compose.yaml @@ -4,7 +4,7 @@ services: environment: WAITER_API_URL: http://waiter-service:4000 expose: - - 6666 + - 5089 depends_on: - waiter-service @@ -14,7 +14,6 @@ services: PORT: 4000 expose: - 4000 - nginx: image: nginx diff --git a/balakhonov_danila_lab_3/nginx.conf b/balakhonov_danila_lab_3/nginx.conf index bdb46d0..6580d1c 100644 --- a/balakhonov_danila_lab_3/nginx.conf +++ b/balakhonov_danila_lab_3/nginx.conf @@ -1,7 +1,7 @@ server { listen 80; listen [::]:80; - server_name restawaiters; + server_name localhost; location /waiters/ { proxy_pass http://waiter-service:4000/; @@ -12,7 +12,7 @@ server { } location /restaurants/ { - proxy_pass http://restaurant-service:6666/; + proxy_pass http://restaurant-service:5089/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme;