DAS_2024_1/zhimolostnova_anna_lab_4/docker-compose.yml
2024-10-09 17:12:11 +03:00

39 lines
896 B
YAML

services:
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
publisher:
build: ThirdTutorial/publisher
depends_on:
rabbitmq:
condition: service_healthy
environment:
- RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672/
first_consumer:
build: ThirdTutorial/firstConsumer
depends_on:
rabbitmq:
condition: service_healthy
environment:
- RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672/
second_consumer:
build: ThirdTutorial/secondConsumer
depends_on:
rabbitmq:
condition: service_healthy
environment:
- RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672/