forked from Medtronic-LABS/spice-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
245 lines (235 loc) · 7.09 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
version: '3'
services:
redisservice:
image: redis:alpine
ports:
- 6379:6379
volumes:
- cache:/data
restart: always
networks:
- spice-app-db-network
authservice:
image: auth-service
build:
context: ${PROJECT_PATH}/auth-service
dockerfile: ${PROJECT_PATH}/auth-service/Dockerfile
ports:
- "8089:8089"
restart: always
links:
- redisservice
depends_on:
- redisservice
- mypostgres
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
volumes:
- ${PROJECT_PATH}/log:/log
networks:
- spice-app-db-network
userservice:
image: user-service
build:
context: ${PROJECT_PATH}/user-service
dockerfile: ${PROJECT_PATH}/user-service/Dockerfile
ports:
- "8085:8085"
restart: always
links:
- redisservice
depends_on:
- mypostgres
- redisservice
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- EMAIL_APP_URL=${EMAIL_APP_URL}
- CFR_EMAIL_APP_URL=${CFR_EMAIL_APP_URL}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- ENABLE_FHIR=${ENABLE_FHIR}
- RABBITMQ_QUEUE_NAME=${RABBITMQ_QUEUE_NAME}
- RABBITMQ_EXCHANGE_NAME=${RABBITMQ_EXCHANGE_NAME}
- RABBITMQ_ROUTING_KEY_NAME=${RABBITMQ_ROUTING_KEY_NAME}
- RABBITMQ_HOST=${RABBITMQ_HOST}
- RABBITMQ_PORT=${RABBITMQ_PORT}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
volumes:
- ${PROJECT_PATH}/log:/log
networks:
- spice-app-db-network
notificationservice:
image: notification-service
build:
context: ${PROJECT_PATH}/notification-service
dockerfile: ${PROJECT_PATH}/notification-service/Dockerfile
ports:
- "8084:8084"
restart: always
links:
- redisservice
volumes:
- ${PROJECT_PATH}/log:/log
depends_on:
- redisservice
- mypostgres
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- MAIL_USER=${MAIL_USER}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_FROM=${MAIL_FROM}
- MAIL_HOST=${MAIL_HOST}
- MAIL_SEND=${MAIL_SEND}
- ENABLE_SMS_NOTIFICATION=${ENABLE_SMS_NOTIFICATION}
- ENABLE_SMS_NOTIFICATION_SNS=${ENABLE_SMS_NOTIFICATION_SNS}
- AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
- AWS_SECRET_KEY=${AWS_SECRET_KEY}
- TWILIO_ACCOUNT_SID=${TWILIO_ACCOUNT_SID}
- TWILIO_AUTH_TOKEN=${TWILIO_AUTH_TOKEN}
- TWILIO_FROM_PHONENO=${TWILIO_FROM_PHONENO}
- SERVER_REGION=${SERVER_REGION}
- ENABLE_SMS_NOTIFICATION_TWILIO=${ENABLE_SMS_NOTIFICATION_TWILIO}
- SHEDLOCK_EMAIL_START=${SHEDLOCK_EMAIL_START}
- SHEDLOCK_EMAIL_STOP=${SHEDLOCK_EMAIL_STOP}
- SHEDLOCK_SMS_START=${SHEDLOCK_SMS_START}
- SHEDLOCK_SMS_STOP=${SHEDLOCK_SMS_STOP}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
networks:
- spice-app-db-network
adminservice:
image: admin-service
build:
context: ${PROJECT_PATH}/admin-service
dockerfile: ${PROJECT_PATH}/admin-service/Dockerfile
ports:
- "8086:8086"
links:
- redisservice
restart: always
volumes:
- ${PROJECT_PATH}/log:/log
depends_on:
- redisservice
- mypostgres
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
# - REDIS_PASSWORD=${REDIS_PASSWORD}
- SERVER_REGION=${SERVER_REGION}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
networks:
- spice-app-db-network
spiceservice:
image: spice-service
build:
context: ${PROJECT_PATH}/spice-service
dockerfile: ${PROJECT_PATH}/spice-service/Dockerfile
ports:
- "8087:8087"
restart: always
links:
- redisservice
volumes:
- ${PROJECT_PATH}/log:/log
- ${PROJECT_PATH}/Prescription_Signatures:/Prescription_Signatures
depends_on:
- redisservice
- mypostgres
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- SERVER_REGION=${SERVER_REGION}
- BUCKET_NAME=${BUCKET_NAME}
- IS_NEXT_MEDICAL_REVIEW_JOB=${IS_NEXT_MEDICAL_REVIEW_JOB}
- IS_NEXT_BP_JOB=${IS_NEXT_BP_JOB}
- IS_NEXT_BG_JOB=${IS_NEXT_BG_JOB}
- SHEDLOCK_OUTBOUND_START=${SHEDLOCK_OUTBOUND_START}
- SHEDLOCK_OUTBOUND_STOP=${SHEDLOCK_OUTBOUND_STOP}
- LOCAL_FILE_SYSTEM_PATH=${LOCAL_FILE_SYSTEM_PATH}
- IS_PRESCRIPTION_SIGNATURE_UPLOADED_TO_S3=${IS_PRESCRIPTION_SIGNATURE_UPLOADED_TO_S3}
- APP_VERSION=${APP_VERSION}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- IS_PRESCRIPTION_SIGNATURE_UPLOADED_TO_MINIO=${IS_PRESCRIPTION_SIGNATURE_UPLOADED_TO_MINIO}
- URL_MINIO=${URL_MINIO}
- CONSOLE_URL_MINIO=${CONSOLE_URL_MINIO}
- ACCESS_NAME_MINIO=${ACCESS_NAME_MINIO}
- ACCESS_SECRET_MINIO=${ACCESS_SECRET_MINIO}
- BUCKET_NAME_MINIO=${BUCKET_NAME_MINIO}
- RABBITMQ_QUEUE_NAME=${RABBITMQ_QUEUE_NAME}
- RABBITMQ_EXCHANGE_NAME=${RABBITMQ_EXCHANGE_NAME}
- RABBITMQ_ROUTING_KEY_NAME=${RABBITMQ_ROUTING_KEY_NAME}
- RABBITMQ_HOST=${RABBITMQ_HOST}
- RABBITMQ_PORT=${RABBITMQ_PORT}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
- ENABLE_FHIR=${ENABLE_FHIR}
networks:
- spice-app-db-network
servicediscovery:
image: eureka-server
build:
context: ${PROJECT_PATH}/servicediscovery
dockerfile: ${PROJECT_PATH}/servicediscovery/Dockerfile
ports:
- "8761:8761"
links:
- redisservice
restart: always
networks:
- spice-app-db-network
mypostgres:
image: postgres
restart: always
ports:
- "5432:5432"
links:
- redisservice
depends_on:
- redisservice
environment:
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_DB=${DATABASE_NAME}
networks:
- spice-app-db-network
gatewayservice:
image: gateway-service
build:
context: ${PROJECT_PATH}/gateway-service
dockerfile: ${PROJECT_PATH}/gateway-service/Dockerfile
ports:
- "8762:8762"
restart: always
environment:
- SWAGGER_ENABLED=${SWAGGER_ENABLED}
networks:
- spice-app-db-network
networks:
spice-app-db-network:
driver: bridge
volumes:
cache:
driver: local
mypostgres:
driver: local