-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
208 lines (192 loc) · 5.14 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
version: '3.1'
services:
mongodb-container:
image: mongo
container_name: mongodb-container
restart: always
volumes:
- './dockervolume/mongodb:/data/db'
ports:
- 27017:27017
networks:
- zilean-network
postgresql-container:
image: postgres
container_name: postgresql-container
restart: always
ports:
- '5433:5432'
volumes:
- './dockervolume/postgres:/data/db'
environment:
POSTGRES_PASSWORD: 'audit_service_test'
POSTGRES_DB: 'audit_service_test'
POSTGRES_USER: 'audit_service_test'
networks:
- zilean-network
user-container:
image: impiyush83/main-user-service:latest
container_name: user-container
restart: always
environment:
- MONGO_URI=mongodb://mongodb-container:27017
ports:
- 5005:5005
depends_on:
- mongodb-container
networks:
- zilean-network
session-container:
image: impiyush83/main-session-service:latest
container_name: session-container
restart: always
environment:
- MONGO_URI=mongodb://mongodb-container:27017/session-service
ports:
- 5004:5004
depends_on:
- mongodb-container
networks:
- zilean-network
audit-container:
image: impiyush83/main-audit-service:latest
container_name: audit-container
restart: always
environment:
- DB_USERNAME=audit_service_test
- DB_PASSWORD=audit_service_test
- DB_DATABASE=audit_service_test
- DB_HOST=postgresql-container
- DB_PORT=5432
- DB_CONNECTION=postgres
- DB_CONNECTION_POOL_MAX_CONNECTIONS=6
- DB_CONNECTION_POOL_MIN_CONNECTIONS=1
- SQL_LOGGING_ENABLED=true
ports:
- 5001:5001
depends_on:
- postgresql-container
networks:
- zilean-network
kafaq-container:
image: impiyush83/main-kafka-audit-queue:latest
container_name: kafaq-container
restart: always
environment:
- KAFKA_BROKER_URL=kafka-container:9092
- AUDIT_SERVICE=http://audit-container:5001
depends_on:
- kafka-container
- audit-container
networks:
- zilean-network
kafdq-container:
image: impiyush83/main-kafka-data-retrieval-queue:latest
container_name: kafdq-container
restart: always
environment:
- KAFKA_BROKER_URL=kafka-container:9092
- DATA_RETRIEVAL_SERVICE=http://data-retrieval-container:5003
depends_on:
- kafka-container
- data-retrieval-container
networks:
- zilean-network
kafpq-container:
image: impiyush83/main-kafka-plot-queue:latest
container_name: kafpq-container
restart: always
environment:
- KAFKA_BROKER_URL=kafka-container:9092
- PLOT_SERVICE=http://plot-container:5002
depends_on:
- kafka-container
- plot-container
networks:
- zilean-network
frontend-container:
image: rushikeshpharate/zilean-frontend:latest
container_name: frontend-container
restart: always
environment:
- GATEWAY_SERVICE_URL=http://gateway-container:5006/
depends_on:
- gateway-container
ports:
- 3000:3000
networks:
- zilean-network
gateway-container:
image: impiyush83/main-gateway-service:latest
container_name: gateway-container
restart: always
environment:
- AUDIT_SERVICE=http://audit-container:5001
- SESSION_SERVICE=http://session-container:5004
- USER_SERVICE=http://user-container:5005
- PLOT_SERVICE=http://plot-container:5002
- KAFKA_BROKER_URL=kafka-container:9092
depends_on:
- session-container
- user-container
- audit-container
- kafaq-container
- kafdq-container
- kafpq-container
- data-retrieval-container
- plot-container
ports:
- 5006:5006
networks:
- zilean-network
data-retrieval-container:
image: impiyush83/main-data-retrieval-service:latest
container_name: data-retrieval-container
restart: always
environment:
- KAFKA_BROKER_URL=kafka-container:9092
- MONGO_URI=mongodb://mongodb-container:27017
depends_on:
- kafka-container
- kafpq-container
- plot-container
ports:
- 5003:5003
networks:
- zilean-network
localstack-container:
image: localstack/localstack:latest
container_name: localstack-container
environment:
- AWS_DEFAULT_REGION=us-east-1
- EDGE_PORT=4566
- SERVICES=s3
ports:
- '4566:4566'
volumes:
- "${TEMPDIR:-/tmp/localstack}:/tmp/localstack"
networks:
- zilean-network
plot-container:
image: impiyush83/main-plot-service:latest
container_name: plot-container
restart: always
environment:
- KAFKA_BROKER_URL=kafka-container:9092
- MONGO_URI=mongodb://mongodb-container:27017
- AWS_ACCESS_KEY_ID=plot
- AWS_SECRET_ACCESS_KEY=plot
- AWS_REGION=us-east-1
- USE_LOCAL=True
- S3_BUCKET=plots
- S3_HOST=http://localstack-container:4566
depends_on:
- localstack-container
ports:
- 5002:5002
networks:
- zilean-network
networks:
zilean-network:
name: zilean-network
driver: bridge