version: '3.8' services: rabbitmq: image: "rabbitmq:management" ports: - "5672:5672" - "15672:15672" networks: - my_network restart: always user-service: build: context: ./user_service ports: - "5001:5001" depends_on: - rabbitmq networks: - my_network order-service: build: context: ./order_service ports: - "5002:5002" depends_on: - rabbitmq networks: - my_network nginx: image: nginx:latest ports: - "80:80" depends_on: - user-service - order-service networks: - my_network volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf networks: my_network: driver: bridge