forked from Alexey/DAS_2024_1
еще разок
This commit is contained in:
parent
4fc879212e
commit
74e61987dc
@ -4,7 +4,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WAITER_API_URL: http://waiter-service:4000
|
WAITER_API_URL: http://waiter-service:4000
|
||||||
expose:
|
expose:
|
||||||
- 6666
|
- 5089
|
||||||
depends_on:
|
depends_on:
|
||||||
- waiter-service
|
- waiter-service
|
||||||
|
|
||||||
@ -14,7 +14,6 @@ services:
|
|||||||
PORT: 4000
|
PORT: 4000
|
||||||
expose:
|
expose:
|
||||||
- 4000
|
- 4000
|
||||||
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name restawaiters;
|
server_name localhost;
|
||||||
|
|
||||||
location /waiters/ {
|
location /waiters/ {
|
||||||
proxy_pass http://waiter-service:4000/;
|
proxy_pass http://waiter-service:4000/;
|
||||||
@ -12,7 +12,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /restaurants/ {
|
location /restaurants/ {
|
||||||
proxy_pass http://restaurant-service:6666/;
|
proxy_pass http://restaurant-service:5089/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user