-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.41 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.8"
services:
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
container_name: rabbitmq
ports:
- "8080:15672"
- "5672:5672"
- "25676:25676"
environment:
RABBITMQ_DEFAULT_USER: cristiano
RABBITMQ_DEFAULT_PASS: 123456789
networks:
- "rabbit_network"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 10s
retries: 5
log-consumer:
build: ./src/consumer/log
container_name: log-consumer
depends_on:
register-consumer:
condition: service_started
rabbitmq:
condition: service_healthy
networks:
- "rabbit_network"
environment:
CONNECTION_STRING: "amqp://cristiano:123456789@rabbitmq:5672"
register-consumer:
build: ./src/consumer/background-service
container_name: register-consumer
depends_on:
rabbitmq:
condition: service_healthy
networks:
- "rabbit_network"
environment:
CONNECTION_STRING: "amqp://cristiano:123456789@rabbitmq:5672"
regiter-publisher:
build: ./src/publisher/
container_name: register-publisher
ports:
- "5000:80"
depends_on:
rabbitmq:
condition: service_healthy
networks:
- "rabbit_network"
environment:
CONNECTION_STRING: "amqp://cristiano:123456789@rabbitmq:5672"
networks:
rabbit_network:
driver: bridge