заходит как-то в бар чебурашка с чемоданом
This commit is contained in:
parent
8f2a9c126c
commit
e295c3fa5f
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user