version: '3.8' services: gateway: build: ./gateway ports: - "8080:80" volumes: - ./gateway/nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - subscription - books subscription: build: ./service_subscription ports: - "5001:5000" books: build: ./service_books ports: - "5002:5000"