DAS_2023_1/basharin_sevastyan_lab_3/docker-compose.yaml

47 lines
747 B
YAML
Raw Normal View History

2023-11-24 07:55:12 +04:00
version: '3.8'
2023-11-21 21:56:09 +04:00
services:
2023-11-24 07:55:12 +04:00
rabbitmq:
image: "rabbitmq:management"
ports:
- "5672:5672"
- "15672:15672"
networks:
- my_network
restart: always
2023-11-21 23:45:46 +04:00
user-service:
build:
context: ./user_service
2023-11-21 21:56:09 +04:00
ports:
2023-11-21 23:45:46 +04:00
- "5001:5001"
2023-11-21 21:56:09 +04:00
depends_on:
2023-11-21 23:45:46 +04:00
- rabbitmq
2023-11-24 07:55:12 +04:00
networks:
- my_network
2023-11-21 21:56:09 +04:00
2023-11-21 23:45:46 +04:00
order-service:
build:
context: ./order_service
2023-11-21 21:56:09 +04:00
ports:
2023-11-21 23:45:46 +04:00
- "5002:5002"
depends_on:
- rabbitmq
2023-11-24 07:55:12 +04:00
networks:
- my_network
2023-11-21 21:56:09 +04:00
2023-11-21 23:45:46 +04:00
nginx:
2023-11-24 07:55:12 +04:00
image: nginx:latest
2023-11-21 23:45:46 +04:00
ports:
- "80:80"
depends_on:
- user-service
- order-service
2023-11-24 07:55:12 +04:00
networks:
- my_network
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
my_network:
driver: bridge