-
Notifications
You must be signed in to change notification settings - Fork 139
/
docker-compose.yml
66 lines (61 loc) · 1.4 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
63
64
65
66
version: "3"
services:
q-rabbitmq:
container_name: q-rabbitmq
image: rabbitmq:3-management
hostname: q-rabbitmq-broker
restart: unless-stopped
networks:
- q-rabbitmq-network
ports:
- "5672:5672"
- "15672:15672"
env_file:
- rabbitmq/q-rabbitmq-auth.env
# Do some health checks to see if q-rabbitmq is running before starting the other services
healthcheck:
test: rabbitmq-diagnostics -q status
interval: 15s
timeout: 15s
retries: 5
contact-service:
container_name: contact-service
build:
context: .
target: contact-service
restart: unless-stopped
networks:
- q-rabbitmq-network
env_file:
- services/contact/.env
depends_on:
q-rabbitmq:
condition: service_healthy
order-service:
container_name: order-service
build:
context: .
target: order-service
restart: unless-stopped
networks:
- q-rabbitmq-network
env_file:
- services/order/.env
depends_on:
q-rabbitmq:
condition: service_healthy
shipping-service:
container_name: shipping-service
build:
context: .
target: shipping-service
restart: unless-stopped
networks:
- q-rabbitmq-network
env_file:
- services/shipping/.env
depends_on:
q-rabbitmq:
condition: service_healthy
networks:
q-rabbitmq-network: