DAS_2024_1/bogdanov_dmitry_lab_3/compose.yaml

27 lines
488 B
YAML
Raw Permalink Normal View History

2024-10-09 16:17:26 +04:00
services:
user_service:
container_name: userService
build:
context: .
dockerfile: ./userService/Dockerfile
expose:
- 20001
message_service:
container_name: messageService
build:
context: .
dockerfile: ./messageService/Dockerfile
expose:
- 20002
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- user_service
- message_service