DAS_2024_1/balakhonov_danila_lab_3/docker-compose.yaml

28 lines
525 B
YAML
Raw Normal View History

2024-11-03 19:18:40 +04:00
services:
restaurant-service:
2024-11-03 19:22:37 +04:00
build: ./ApiRestaurant/
container_name: restaurant
2024-11-03 19:18:40 +04:00
environment:
WAITER_API_URL: http://waiter-service:4000
2024-11-03 20:15:43 +04:00
expose:
2024-11-03 22:31:00 +04:00
- 8080
2024-11-03 19:18:40 +04:00
depends_on:
- waiter-service
2024-11-03 19:22:37 +04:00
2024-11-03 19:18:40 +04:00
waiter-service:
2024-11-03 19:22:37 +04:00
build: ./ApiWaiter/
container_name: waiter
2024-11-03 19:18:40 +04:00
environment:
PORT: 4000
2024-11-03 20:15:43 +04:00
expose:
- 4000
2024-11-03 19:18:40 +04:00
nginx:
image: nginx
depends_on:
- restaurant-service
- waiter-service
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf