-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (91 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
100 lines (91 loc) · 1.91 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "3.8"
services:
auth-service:
image: radit-auth-service
depends_on:
- mongodb
ports:
- "6000:80"
environment:
NAME: auth-service
PORT: 80
DB_HOST: mongodb
customer-service:
image: radit-customer-service
depends_on:
- mongodb
ports:
- "7000:80"
environment:
NAME: customer-service
PORT: 80
DB_HOST: mongodb
product-service:
image: radit-product-service
depends_on:
- mongodb
ports:
- "8000:80"
- "8001:8001"
environment:
NAME: product-service
PORT: 80
DB_HOST: mongodb
RPC_PORT: 8001
payment-service:
image: radit-payment-service
depends_on:
- mongodb
ports:
- "9000:80"
environment:
NAME: payment-service
PORT: 80
DB_HOST: mongodb
AMQP_HOST: rabbitmq
order-service:
image: radit-order-service
depends_on:
- mongodb
ports:
- "10000:80"
environment:
NAME: order-service
PORT: 80
DB_HOST: mongodb
AMQP_HOST: rabbitmq
RPC_HOST: "product-service:8001"
api-gateway:
image: radit-api-gateway
ports:
- "5000:5000"
environment:
NAME: api-gateway
PORT: 5000
AUTH_SERVICE: auth-service
CUSTOMER_SERVICE: customer-service
ORDER_SERVICE: order-service
PRODUCT_SERVICE: product-service
PAYMENT_SERVICE: payment-service
worker:
image: radit-worker
environment:
NAME: worker
DB_HOST: mongodb
AMQP_HOST: rabbitmq
mongodb:
image: mongo
container_name: mongodb
ports:
- 27017:27017
volumes:
- ./database:/data/db
rabbitmq:
image: rabbitmq:3.8.19-management
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- ./rabbitmq/data/:/var/lib/rabbitmq/
- ./rabbitmq/log/:/var/log/rabbitmq