DAS_2024_1/tsukanova_irina_lab_3/docker-compose.yaml

27 lines
494 B
YAML

services:
author_service:
container_name: author_service
build:
context: .
dockerfile: ./author_service/Dockerfile
expose:
- 20001
book_service:
container_name: book_service
build:
context: .
dockerfile: ./book_service/Dockerfile
expose:
- 20002
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- author_service
- book_service