This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
performant-compose.yaml
232 lines (232 loc) · 5.96 KB
/
performant-compose.yaml
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
version: "3.2"
services:
mailerqr:
image: atechnohazard/mailer-microservice
container_name: mailerqr_hades
depends_on:
- event
- participants
- simple_projection
restart: on-failure
ports:
- 4000:4000
environment:
SENDGRID_API_KEY: "${SENDGRID_API_KEY}"
FROM_EMAIL: "${FROM_EMAIL}"
BASE_URL: "${BASE_URL}"
permission_generator:
image: angadsharma1016/hades_permission_generator:latest
restart: on-failure
container_name: permission_generator_hades
ports:
- 3001:3000
#depends_on:
#- simple_projection
coupons:
build:
context: .
dockerfile: coupons/Dockerfile_performant
container_name: coupons_hades
depends_on:
- neo4j
ports:
- 8082:8082
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
SALT: "${SALT}"
event:
build:
context: .
dockerfile: events/Dockerfile_performant
container_name: event_hades
depends_on:
- neo4j
ports:
- 8080:8080
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
participants:
build:
context: .
dockerfile: participants/Dockerfile_performant
container_name: participants_hades
depends_on:
- neo4j
ports:
- 8081:8081
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
simple_projection:
build:
context: .
dockerfile: simple_projection/Dockerfile_performant
container_name: simple_projection_hades
depends_on:
- neo4j
ports:
- 8083:8083
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
exporter:
build:
context: .
dockerfile: exporter/Dockerfile_performant
container_name: exporter_hades
ports:
- 8084:8084
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
depends_on:
- simple_projection
env_file: ./.env
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
SIMPLE_PROJECTION_URI: "${SIMPLE_PROJECTION_URI}"
analytics:
build:
context: .
dockerfile: analytics/Dockerfile_performant
container_name: analytics_hades
ports:
- 8085:8085
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
env_file: ./.env
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
MAIL_FROM: "${MAIL_FROM}"
MAIL_TO: "${MAIL_TO}"
MAIL_PASSWORD: "${MAIL_PASSWORD}"
guests:
build:
context: .
dockerfile: guests/Dockerfile_performant
container_name: guests_hades
depends_on:
- neo4j
ports:
- 8086:8086
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
PROD_URI: "${PROD_URI}"
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
organization:
build:
context: .
dockerfile: organization/Dockerfile_performant
container_name: organization_hades
depends_on:
- neo4j
ports:
- 8087:8087
volumes:
- .:/go/src/github.com/GDGVIT/Project-Hades
restart: on-failure
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
PROD_URI: "${PROD_URI}"
neo4j:
container_name: neo4j_hades
image: neo4j:latest
ports:
- 7474:7474
- 7687:7687
restart: on-failure
volumes:
- ./db/data:/data/
- ./db/conf/:/conf/
command: neo4j
env_file: ./.env
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
NEO4J_AUTH: "${NEO4J_AUTH}"
nginx:
container_name: nginx_hades
build:
context: .
dockerfile: Web/Dockerfile
ports:
- 80:80
env_file: ./.env
volumes:
- ./Web/nginx.conf:/etc/nginx/nginx.conf
# restart: on-failure
links:
- event:event
- participants:participants
- coupons:coupons
- simple_projection:simple_projection
- guests:guests
- analytics:analytics
db:
container_name: db
image: mysql:5.7.25
restart: always
volumes:
- ./db_data:/var/lib/mysql
# - ./database/setup.sql:/docker-entrypoint-initdb.d
env_file: ./.env
environment:
JWT_PASSWORD: "${JWT_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
ports:
- 3306:3306
nats:
container_name: nats_hades
image: nats
ports:
- 4222:4222 # for clients
- 8222:8222 # HTTP management port for reporting
- 6222:6222 # routing port for clustering
volumes:
dgraph: