version: '3.7' services: authors: build: context: ./authors ports: - "3000:3000" networks: - app-network books: build: context: ./books ports: - "3001:3001" networks: - app-network depends_on: - authors nginx: image: nginx:latest ports: - "80:80" volumes: - ./nginx.conf:/etc/nginx/nginx.conf depends_on: - authors - books networks: - app-network networks: app-network: driver: bridge