-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
249 lines (249 loc) · 8.78 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
246
247
248
249
version: '2.1'
services:
api-gateway:
image: api-gateway
build:
context: .
dockerfile: Dockerfile
environment:
GW_AUTH_URL: 'http://localhost:8084/auth/login'
GW_PORT: 8080
GW_UPLOAD_SERVICE: 'upload-service:8080'
GW_DOWNLOAD_SERVICE: 'download-service:8080'
GW_FILE_SERVICE: 'file-service:8080'
GW_PERMISSION_SERVICE: 'permission-service:8080'
GW_USER_SERVICE: 'user-service:8080'
GW_SEARCH_SERVICE: 'search-service:8080'
GW_GOTENBERG_SERVICE: 'http://gotenberg-service:8080'
GW_ALLOW_ORIGINS: 'http://localhost*'
GW_SUPPORT_LINK: 'https://open.rocket.chat/home'
GW_CHROME_DOWNLOAD_URL: 'https://google.com/chrome/'
ELASTICSEARCH_URL: 'http://localhost:9200'
LOG_INDEX: 'kdrive'
LOG_LEVEL: 'info'
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTIC_APM_SERVICE_NAME: 'api-gateway'
ELASTIC_APM_SERVICE_VERSION: '0.1'
ELASTIC_APM_ENVIRONMENT: 'development'
ELASTIC_APM_ACTIVE: 'true'
ELASTIC_APM_IGNORE_URLS: '/api/healthcheck'
ELASTIC_APM_CAPTURE_BODY: 'all'
ELASTIC_APM_METRICS_INTERVAL: '10s'
GW_EXTERNAL_APM_URL: 'http://localhost:8200'
GW_SECRET: 'pandora@drive'
ports:
- '8080:8080'
depends_on:
- upload-service
- download-service
- file-service
- authentication-service
- permission-service
- search-service
- gotenberg-service
minio:
image: minio/minio
volumes:
- './data:/data'
ports:
- '9000:9000'
environment:
MINIO_ACCESS_KEY: 'F6WUUG27HBUFSIXVZL59'
MINIO_SECRET_KEY: 'BPlIUU6SX0ZxiCMo3tIpCMAUdnmkN9Eo9K42NsRR'
command: server /data
upload-service:
image: 'bluehub.azurecr.io/meateam/upload-service:develop'
environment:
S3_ACCESS_KEY: 'F6WUUG27HBUFSIXVZL59'
S3_SECRET_KEY: 'BPlIUU6SX0ZxiCMo3tIpCMAUdnmkN9Eo9K42NsRR'
S3_ENDPOINT: 'http://minio:9000'
TCP_PORT: '8080'
HOST_NAME: 'upload-service'
ELASTICSEARCH_URL: 'http://localhost:9200'
LOG_INDEX: 'kdrive'
LOG_LEVEL: 'debug'
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTIC_APM_SERVICE_NAME: 'upload-service'
ELASTIC_APM_SERVICE_VERSION: '0.1'
ELASTIC_APM_ENVIRONMENT: 'development'
ELASTIC_APM_ACTIVE: 'true'
ELASTIC_APM_CAPTURE_BODY: 'all'
ELASTIC_APM_METRICS_INTERVAL: '10s'
US_ELASTIC_APM_IGNORE_URLS: '/grpc.health.v1.Health/Check'
depends_on:
- minio
ports:
- '8081:8080'
download-service:
image: 'bluehub.azurecr.io/meateam/download-service:develop'
environment:
S3_ACCESS_KEY: 'F6WUUG27HBUFSIXVZL59'
S3_SECRET_KEY: 'BPlIUU6SX0ZxiCMo3tIpCMAUdnmkN9Eo9K42NsRR'
S3_ENDPOINT: 'http://minio:9000'
TCP_PORT: '8080'
HOST_NAME: 'download-service'
ELASTICSEARCH_URL: 'http://localhost:9200'
LOG_INDEX: 'kdrive'
LOG_LEVEL: 'debug'
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTIC_APM_SERVICE_NAME: 'download-service'
ELASTIC_APM_SERVICE_VERSION: '0.1'
ELASTIC_APM_ENVIRONMENT: 'development'
ELASTIC_APM_ACTIVE: 'true'
ELASTIC_APM_CAPTURE_BODY: 'all'
ELASTIC_APM_METRICS_INTERVAL: '10s'
DS_ELASTIC_APM_IGNORE_URLS: '/grpc.health.v1.Health/Check'
ports:
- '8082:8080'
depends_on:
- minio
file-service:
image: 'bluehub.azurecr.io/meateam/file-service:develop'
environment:
BIND_ADDRESS: '0.0.0.0:8080'
ELASTICSEARCH_URL: 'http://localhost:9200'
ELASTICSEARCH_USER: ''
ELASTICSEARCH_PASSWORD: ''
LOG_INDEX: 'kdrive'
APM_SECRET_TOKEN: ''
FS_APM_SERVICE_NAME: 'file-service'
ELASTIC_APM_VERIFY_SERVER_CERT: 'false'
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
USER_QUOTA_LIMIT: '10'
NODE_ENV: 'dev'
DEBUG_MODE: 'false'
RECONNECT_ATTEMPTS: '5'
RECONNECT_TIMEOUT: '2000'
MONGO_HOST: 'mongodb://mongo:27017/devDB'
ports:
- '8083:8080'
depends_on:
- mongo
mongo:
image: 'mongo:4.0.9'
ports:
- '27017:27017'
volumes:
- './data/db:/data/db'
depends_on:
- minio
authentication-service:
image: 'bluehub.azurecr.io/meateam/authentication-service:develop'
ports:
- '8084:8080'
environment:
SAML_ENTRY_POINT: 'http://localhost:8085/simplesaml/saml2/idp/SSOService.php'
SAML_ISSUER: 'http://localhost:8084/auth/metadata.xml'
SAML_CALLBACK_URL: 'http://localhost:8084/auth/metadata.xml/callback'
USERS_RPC_ENDPOINT: 'user-service:8080'
SECRET_KEY: 'pandora@drive'
CLIENT_ENDPOINT: 'http://localhost'
STRATEGY: 'saml'
depends_on:
- saml-idp
- user-service
saml-idp:
image: 'bluehub.azurecr.io/meateam/test-saml-idp:latest'
ports:
- '8085:8080'
environment:
SIMPLESAMLPHP_SP_ENTITY_ID: 'http://localhost:8084/auth/metadata.xml'
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: 'http://localhost:8084/auth/metadata.xml/callback'
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: 'http://localhost:8084/auth/logout'
user-service:
image: 'bluehub.azurecr.io/meateam/user-service:develop'
ports:
- '8086:8080'
environment:
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTICSEARCH_URL: 'http://localhost:9200'
KARTOFFEL_URL: 'http://kartoffel-master.eastus.cloudapp.azure.com:3000'
RPC_PORT: '8080'
REDIS_PORT: '6379'
REDIS_HOST: 'redis'
LOG_INDEX: 'kdrive'
SPIKE_CLIENT_ID: EPBpjCiczupCXZgBEq3ARZCinUt4LSXtOsVrI1Ub
SPIKE_CLIENT_SECRET: u5qxEK0sy17ReZ7t8aVeN1gCcdI9hRiM78i9J_9Z6jA2YWcvbgczcchKqZ4WnXOsdT6jxmuVCLC3~RXuVcE5EsOG4JJi~B8AJQSB
SPIKE_REQUIRED: 'true'
SPIKE_URL: 'https://spike.westeurope.cloudapp.azure.com'
SPIKE_AUTH_SERVER_PORT: '1337'
SPIKE_TOKEN_URL: 'https://spike.westeurope.cloudapp.azure.com:1337/oauth2/token'
TOKEN: >-
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJrYXJ0b2ZmZWwiLCJzdWIiOiI1ZDc2NTA2NTBmYWY2ODIwOTQ4YzMzZGQiLCJzY29wZSI6W10sImNsaWVudElkIjoiRVBCcGpDaWN6dXBDWFpnQkVxM0FSWkNpblV0NExTWHRPc1ZySTFVYiIsImlhdCI6MTU2ODIxMDM1NSwiZXhwIjoxNTY4MjEwNTM1LCJpc3MiOiJodHRwczovLzUxLjE0NC4xNzguMTIxIn0.bSALlqft4U_FiiPr8gtYxx1AOVmnwMxN9-ardt5FhaY_UhKc18PIq5dBSMCMp34sfZnwsBh7uxL3wxDjPxZzYb_RMyLc_wonUurdDjI9zBq5fkyhwdNdBxIirBooVMwjt3mqxVtvVSsWvip3Lfj0zW-qb7n_n5LDRI4YG36cfUc_FCA60keccyHGMJJ1jd8trTvx1XQT8-PTlOlIQifws42Hpc3KIAUM0a2K-VuhK8bdQgcnvkB9Ca55OstOFi27cFf1jV9VO1as5yA6WabDTxht5KxfVN-nMpHhQN0CFw-kngIX2P8F0rlmA2JwmSPVcnDF3OweMAs5CBHQzkdomA
DEBUG_MODE: 'false'
USR_MONGO_HOST: 'mongodb://mongo:27017/devDB'
depends_on:
- mongo
- redis
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
permission-service:
image: 'bluehub.azurecr.io/meateam/permission-service:develop'
ports:
- '8087:8080'
environment:
PS_PORT: '8080'
PS_MONGO_HOST: 'mongodb://mongo:27017/permission'
PS_ELASTIC_APM_IGNORE_URLS: '/grpc.health.v1.Health/Check'
PS_MONGO_CLIENT_CONNECTION_TIMEOUT: '10'
PS_MONGO_CLIENT_PING_TIMEOUT: '10'
PS_HEALTH_CHECK_INTERVAL: '3'
ELASTICSEARCH_URL: 'http://localhost:9200'
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTIC_APM_ENVIRONMENT: 'development'
ELASTIC_APM_ACTIVE: 'true'
ELASTIC_APM_CAPTURE_BODY: 'all'
ELASTIC_APM_METRICS_INTERVAL: '10s'
depends_on:
- mongo
search-service:
image: bluehub.azurecr.io/meateam/search-service:develop
environment:
SS_PORT: 8080
SS_HOST_NAME: search-service
SS_ELASTICSEARCH_URL: http://elasticsearch:9200
SS_ELASTICSEARCH_INDEX: files
LOG_INDEX: kdrive
LOG_LEVEL: debug
SS_HEALTH_CHECK_INTERVAL: 5
ELASTIC_APM_SERVER_URL: 'http://localhost:8200'
ELASTIC_APM_SERVICE_NAME: 'search-service'
ELASTIC_APM_SERVICE_VERSION: '0.1'
ELASTIC_APM_ENVIRONMENT: 'development'
ELASTIC_APM_ACTIVE: 'true'
ELASTIC_APM_CAPTURE_BODY: 'all'
ELASTIC_APM_METRICS_INTERVAL: '10s'
SS_ELASTIC_APM_IGNORE_URLS: '/grpc.health.v1.Health/Check'
ports:
- 8088:8080
depends_on:
elasticsearch:
condition: service_healthy
gotenberg-service:
image: bluehub.azurecr.io/meateam/gotenberg:6
environment:
DEFAULT_LISTEN_PORT: 8080
DISABLE_GOOGLE_CHROME: 1
tmpfs:
- /tmp
- /gotenberg/tmp
ports:
- 8089:8080
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
environment:
- discovery.type=single-node
container_name: elasticsearch
ports: ['9200:9200']
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 5s
timeout: 10s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:7.5.0
container_name: kibana
ports: ['5601:5601']
depends_on: ['elasticsearch']