forked from Alexey/DAS_2024_1
39 lines
896 B
YAML
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/
|