-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.23 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
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: my-rabbit
volumes:
- ./rabbitmq/etc/definitions.json:/etc/rabbitmq/defu.json
- ./rabbitmq/etc/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./rabbitmq/data:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit
- ./rabbitmq/logs:/var/log/rabbitmq/log
ports:
- 5672:5672
- 15672:15672
networks:
- monorepo_network
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 5s
timeout: 30s
retries: 5
cart-service:
build:
context: ./cart-service
ports:
- "8001:3003"
networks:
- monorepo_network
depends_on:
rabbitmq:
condition: service_healthy
customer-service:
build:
context: ./customer-service
ports:
- "8002:3004"
networks:
- monorepo_network
order-service:
build:
context: ./order-service
ports:
- "8003:3005"
networks:
- monorepo_network
product-service:
build:
context: ./product-service
ports:
- "8004:3006"
networks:
- monorepo_network
depends_on:
rabbitmq:
condition: service_healthy
networks:
monorepo_network: