version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - "80:80" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - price - product networks: - app-network product: build: context: ./product_module dockerfile: Dockerfile ports: - "8080:8080" networks: - app-network price: build: context: ./price_history_module dockerfile: Dockerfile ports: - "8081:8081" networks: - app-network networks: app-network: driver: bridge