From e295c3fa5f108761c1bd617405f0f64cfe7c2c1f Mon Sep 17 00:00:00 2001 From: mfnefd Date: Sun, 3 Nov 2024 22:38:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D1=85=D0=BE=D0=B4=D0=B8=D1=82=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=BA-=D1=82=D0=BE=20=D0=B2=20=D0=B1=D0=B0=D1=80?= =?UTF-8?q?=20=D1=87=D0=B5=D0=B1=D1=83=D1=80=D0=B0=D1=88=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=20=D1=87=D0=B5=D0=BC=D0=BE=D0=B4=D0=B0=D0=BD=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balakhonov_danila_lab_3/docker-compose.yaml | 2 ++ balakhonov_danila_lab_3/nginx.conf | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/balakhonov_danila_lab_3/docker-compose.yaml b/balakhonov_danila_lab_3/docker-compose.yaml index 4763734..fd9a5dc 100644 --- a/balakhonov_danila_lab_3/docker-compose.yaml +++ b/balakhonov_danila_lab_3/docker-compose.yaml @@ -1,6 +1,7 @@ services: restaurant-service: build: ./ApiRestaurant/ + container_name: restaurant environment: WAITER_API_URL: http://waiter-service:4000 expose: @@ -10,6 +11,7 @@ services: waiter-service: build: ./ApiWaiter/ + container_name: waiter environment: PORT: 4000 expose: diff --git a/balakhonov_danila_lab_3/nginx.conf b/balakhonov_danila_lab_3/nginx.conf index 70ef564..742d868 100644 --- a/balakhonov_danila_lab_3/nginx.conf +++ b/balakhonov_danila_lab_3/nginx.conf @@ -9,7 +9,7 @@ http { server_name localhost; location /waiters/ { - proxy_pass http://waiter-service:4000/; + proxy_pass http://waiter:4000/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; @@ -17,7 +17,7 @@ http { } location /restaurants/ { - proxy_pass http://restaurant-service:8080/; + proxy_pass http://restaurant:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme;