forked from Alexey/DAS_2024_1
эээ...
This commit is contained in:
parent
e8cf19d932
commit
4fc879212e
@ -6,6 +6,4 @@ RUN npm i
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 4000
|
|
||||||
|
|
||||||
ENTRYPOINT ["npm", "run", "start"]
|
ENTRYPOINT ["npm", "run", "start"]
|
@ -3,6 +3,8 @@ services:
|
|||||||
build: ./ApiRestaurant/
|
build: ./ApiRestaurant/
|
||||||
environment:
|
environment:
|
||||||
WAITER_API_URL: http://waiter-service:4000
|
WAITER_API_URL: http://waiter-service:4000
|
||||||
|
expose:
|
||||||
|
- 6666
|
||||||
depends_on:
|
depends_on:
|
||||||
- waiter-service
|
- waiter-service
|
||||||
|
|
||||||
@ -10,8 +12,9 @@ services:
|
|||||||
build: ./ApiWaiter/
|
build: ./ApiWaiter/
|
||||||
environment:
|
environment:
|
||||||
PORT: 4000
|
PORT: 4000
|
||||||
ports:
|
expose:
|
||||||
- "4000:4000"
|
- 4000
|
||||||
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
|
21
balakhonov_danila_lab_3/nginx.conf
Normal file
21
balakhonov_danila_lab_3/nginx.conf
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name restawaiters;
|
||||||
|
|
||||||
|
location /waiters/ {
|
||||||
|
proxy_pass http://waiter-service:4000/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Prefix /test;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /restaurants/ {
|
||||||
|
proxy_pass http://restaurant-service:6666/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Prefix /admin;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user