-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
165 lines (154 loc) · 4.28 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
services:
admin:
image: immadiuttej/admin-service
ports:
- "3009:3009"
- "8009:8009"
- "8019:8019"
environment:
- ADMIN_HOST=admin
- ADMIN_SERVICE_PORT=3009
- TRANSACTION_SERVICE_GRPC_PORT=8019
- REWARD_SERVICE_GRPC_PORT=8009
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- SHIPPING_HOST=shipping
- SHIPPING_SERVICE_GRPC_PORT=8003
- KAFKA_BROKER_ADDRESS=broker:9092
auth:
image: rishabh3321/auth-service
ports:
- "3012:3012"
- "8012:8012"
environment:
- AUTH_HOST=auth
- AUTH_PORT=3012
- AUTH_SERVICE_GRPC_PORT=8012
broker:
image: confluentinc/cp-kafka:7.0.1
container_name: broker
ports:
# To learn about configuring Kafka for access across networks see
# https://www.confluent.io/blog/kafka-client-cannot-connect-to-broker-on-aws-on-docker-etc/
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
cart:
image: dhi13man/swiggy-ipp-ecommerce-cart-service:latest
ports:
- "3010:3010"
- "8010:8010"
depends_on:
- broker
environment:
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- CART_HOST=cart
- CART_SERVICE_PORT=3010
- CART_SERVICE_GRPC_PORT=8010
- KAFKA_BROKER_ADDRESS=broker:9092
categories:
image: chahat7/category_image2
ports:
- "3002:3002"
environment:
- CATEGORIES_HOST=categories
- CATEGORIES_SERVICE_PORT=3002
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- PRODUCTS_HOST=products
- PRODUCT_SERVICE_GRPC_PORT=8018
checkout:
image: dhi13man/swiggy-ipp-ecommerce-checkout-service:latest
ports:
- "3011:3011"
environment:
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- CART_HOST=cart
- CART_SERVICE_GRPC_PORT=8010
- CHECKOUT_HOST=checkout
- CHECKOUT_SERVICE_PORT=3011
- CHECKOUT_SERVICE_GRPC_PORT=8011
- ORDER_HOST=orders
- ORDER_SERVICE_GRPC_PORT=8004
- SHIPPING_HOST=shipping
- SHIPPING_SERVICE_GRPC_PORT=8003
orders:
image: jaithunmahira/order-service-dock:latest
ports:
- "3004:3004"
- "8004:8004"
depends_on:
- broker
environment:
- ORDER_HOST=orders
- ORDER_SERVICE_PORT=3004
- ORDER_SERVICE_GRPC_PORT=8004
- AUTH_HOST=auth
- AUTH_CLIENT_GRPC_PORT=8012
- CHECKOUT_SERVICE_PORT=3011
- CHECKOUT_HOST=checkout
- KAFKA_BROKER_ADDRESS=broker:9092
payment:
image: rishabh3321/payment-service
ports:
- "3013:3013"
environment:
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- PAYMENT_HOST=payment
- PAYMENT_PORT=3013
- ORDER_HOST=orders
- ORDER_SERVICE_GRPC_PORT=8004
- KAFKA_BROKER_ADDRESS=broker:9092
rewards:
image: immadiuttej/reward-service
ports:
- "3008:3008"
environment:
- REWARDS_HOST=rewards
- REWARD_SERVICE_PORT=3008
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
- ADMIN_HOST=admin
- ADMIN_SERVICE_GRPC_PORT=8009
shipping:
image: chahat7/shipping_image
ports:
- "3003:3003"
- "8003:8003"
environment:
- SHIPPING_HOST=shipping
- SHIPPING_SERVICE_GRPC_PORT=8003
- SHIPPING_SERVICE_PORT=3003
- AUTH_HOST=auth
- AUTH_SERVICE_GRPC_PORT=8012
transaction:
image: jaithunmahira/transaction-service-dock:latest
ports:
- "3005:3005"
depends_on:
- broker
environment:
- TRANSACTION_HOST=transaction
- TRANSACTION_SERVICE_PORT=3005
- AUTH_HOST=auth
- AUTH_CLIENT_GRPC_PORT=8012
- ADMIN_HOST=admin
- ADMIN_CLIENT_GRPC_PORT=8019
- KAFKA_BROKER_ADDRESS=broker:9092
zookeeper:
image: confluentinc/cp-zookeeper:7.0.1
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000