DAS_2023_1/basharin_sevastyan_lab_3/docker-compose.yaml
2023-11-24 07:55:12 +04:00

47 lines
747 B
YAML

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