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