-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 981 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '2'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
ports:
- 15672:15672
- 5672:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
producer:
build:
context: .
args:
TARGET: producer
command: ["--total", "1"]
depends_on:
rabbitmq:
condition: service_healthy
consumer-foo:
build:
context: .
args:
TARGET: consumer
command: ["--queue", "foo"]
depends_on:
rabbitmq:
condition: service_healthy
consumer-bar:
build:
context: .
args:
TARGET: consumer
command: ["--queue", "bar"]
depends_on:
rabbitmq:
condition: service_healthy