-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
307 lines (289 loc) · 10.9 KB
/
docker-compose.yaml
File metadata and controls
307 lines (289 loc) · 10.9 KB
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
version: "2"
services:
#remove MongoDB container, if you are using managed database
MongoDB:
image: psknowhow/mongodb:5.0.18-rootuser
tty: true
container_name: mongodb
ports:
- 27017:27017
restart: on-failure
volumes:
- mongodbvol:/data/db
- mongodbvol:/data/logs
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
networks:
- Network_apps
#This is a mandatrory container
CustomAPI:
image: psknowhow/customapi:<Knowhow Version>
depends_on: #remove this tag, if you are using managed database
- MongoDB
restart: on-failure
tty: true
container_name: customapi
mem_limit: 4096m
mem_reservation: 1024m
ports:
- 8080:8080
volumes:
- customapivol:/app/logs
- customapivol:/app/properties/
- customapivol:/app/offline_data/
- customapivol:/app/certs/
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links: #remove this tag, if you are using managed database
- MongoDB:mongodb
networks:
- Network_apps
#Mandatory container
UI:
image: psknowhow/ui:<Knowhow Version>
depends_on:
- CustomAPI
restart: on-failure
tty: true
container_name: ui
mem_limit: 1024m
mem_reservation: 256m
ports:
- 80:80 # If you are installing Auth service make this port 82:80
- 443:443 # If you are installing Auth service make this port 445:443
volumes:
- uivol:/var/log/nginx
#- /app/apps/certs/:/etc/ssl/certs/ # If you have your SSL certificate uncomment it and copy to /app/apps/certs directory
links:
- CustomAPI:customapi
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
networks:
- Network_apps
#remove this container, if deployment is not going to use Jira as PM tools datasource
jira-processor:
image: psknowhow/jira-processor:<Knowhow Version>
depends_on: #remove this tag, if you are using managed database
- MongoDB
restart: on-failure
tty: true
container_name: jira-processor
mem_limit: 4096m
mem_reservation: 1024m
volumes:
- jira-processorvol:/app/logs
- jira-processorvol:/app/properties/
- jira-processorvol:/app/offline_data
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links:
- MongoDB:mongodb #remove this tag, if you are using managed database
networks:
- Network_apps
#remove this container, if deployment is not going to use any Repo as data source. Or if using SCM core or SCM API
knowhow-scm-processor:
image: psknowhow/knowhow-scm-processor:<Knowhow Version>
depends_on: #remove this tag, if you are using managed database
- MongoDB
restart: on-failure
tty: true
container_name: knowhow-scm-processor
mem_limit: 2048m
mem_reservation: 1024m
volumes:
- knowhow-scm-processor:/app/logs
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links:
- MongoDB:mongodb #remove this tag, if you are using managed database
networks:
- Network_apps
#Remove this container, if build or repo or Sonar is not going to be used as data source
#for details, refer the documents
devops-processor:
image: psknowhow/devops-processor:<Knowhow Version>
depends_on: #remove this tag, if you are using managed database
- MongoDB
restart: on-failure
tty: true
container_name: devops-processor
mem_limit: 8192m
mem_reservation: 2048m
volumes:
- devops-processorvol:/app/logs
- devops-processorvol:/app/properties/
- devops-processorvol:/app/offline_data
- devops-processorvol:/app/certs/
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links: #remove this tag, if you are using managed database
- MongoDB:mongodb
networks:
- Network_apps
#remove this container, if Azure boards is not going to be used as data source
azure-board-processor:
image: psknowhow/azure-board-processor:<Knowhow Version>
restart: on-failure
depends_on: #remove this tag, if you are using managed database
- MongoDB
tty: true
container_name: azure-board-processor
mem_limit: 1024m
mem_reservation: 512m
volumes:
- azure-board-processorvol:/app/logs
- azure-board-processorvol:/app/properties/
- azure-board-processorvol:/app/offline_data
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links:
- MongoDB:mongodb #remove this tag, if you are using managed database
networks:
- Network_apps
#remove this container, if Azure boards is not going to be used as data source
azure-pipeline-repo:
image: psknowhow/azure-pipeline-repo:<Knowhow Version>
restart: on-failure
depends_on: #remove this tag, if you are using managed database
- MongoDB
tty: true
container_name: azure-pipeline-repo
mem_limit: 2048m
mem_reservation: 1024m
volumes:
- azure-pipeline-repovol:/app/logs
- azure-pipeline-repovol:/app/properties/
- azure-pipeline-repovol:/app/offline_data
- azure-pipeline-repovol:/app/certs/
- /etc/hosts:/etc/hosts
environment:
#add env variable as mentioned @ https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables
links:
- MongoDB:mongodb #remove this tag, if you are using managed database
networks:
- Network_apps
######## The following services scm-processor-postgres, scm-processor-rabbitmq, scm-processor-api & scm-processor-core is a Source code manager processor . Uncomment the services and volumes below if you want to integrate with the Knowhow application to fetch Data from SCM tools.
# scm-processor-postgres:
# container_name: scm-processor-postgres
# image: postgres:11.1
# environment:
# # add env variable as mentioned https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#SCM-tool%3A
# volumes:
# - scm-processor-postgres-data:/var/lib/postgresql/data
# restart: always
# ports:
# - '8001:5432'
# networks:
# - Network_apps
# scm-processor-rabbitmq:
# container_name: scm-processor-rabbitmq
# image: rabbitmq:3.8-management
# environment:
# # add env variable as mentioned https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#SCM-tool%3A
# ports:
# - "8002:5672"
# - "8003:15672"
# cpus: 0.1
# networks:
# - Network_apps
# scm-processor-api:
# container_name: scm-processor-api
# image: psknowhow/scm-processor-api:latest
# ports:
# - '8000:8000'
# environment:
# # add env variable as mentioned https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#SCM-tool%3A
# depends_on:
# - scm-processor-postgres
# - scm-processor-rabbitmq
# restart: always
# networks:
# - Network_apps
# scm-processor-core:
# container_name: scm-processor-core
# image: psknowhow/scm-processor-core:latest
# restart: always
# environment:
# # add env variable as mentioned https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#SCM-tool%3A
# volumes:
# - scm-processor-scanner-storage:/scm-processor-storage
# depends_on:
# - scm-processor-postgres
# - scm-processor-rabbitmq
# networks:
# - Network_apps
#### The following services are for authentication and authorization applications using SAML. Uncomment the services below if you want to integrate with the Knowhow application. And the volumes
# authdb:
# image: psknowhow/postgres-auth-scm:<TAG VERSION>
# tty: true
# container_name: authdb
# restart: always
# cpus: 0.2
# mem_limit: 2048m
# mem_reservation: 1024m
# volumes:
# - authdata:/var/lib/postgresql/data
# - /etc/localtime:/etc/localtime:ro
# environment:
# # add environment variables as mentioned here https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#AuthnAuth-Specific-Variables%3A-Use-Only-When-Deploying-Knowhow-with-Auth-Application
# networks:
# - Network_apps
### If you are not running postgres as scp processor you can uncomment the above "authdb" docker service.
# authnauth:
# image: psknowhow/authnauth:<TAG VERSION>
# depends_on:
# - authdb
# restart: always
# tty: true
# cpus: 0.2
# container_name: authnauth
# mem_limit: 2048m
# mem_reservation: 1024m
# environment:
# # add environment variables as mentioned here https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#AuthnAuth-Specific-Variables%3A-Use-Only-When-Deploying-Knowhow-with-Auth-Application
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# links:
# - authdb:authdb
# networks:
# - Network_apps
# authnauth-ui:
# image: psknowhow/authnauth-ui:<TAG VERSION>
# depends_on:
# - authdb
# - authnauth
# restart: always
# tty: true
# cpus: 0.2
# container_name: authnauth-ui
# mem_limit: 512m
# mem_reservation: 256m
# ports:
# - 443:443
# environment:
# # add environment variables as mentioned here https://psknowhow.atlassian.net/wiki/spaces/PSKNOWHOW/pages/45711363/Docker+Environmental+variables#AuthnAuth-Specific-Variables%3A-Use-Only-When-Deploying-Knowhow-with-Auth-Application
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# #- /app/apps/certs/:/etc/ssl/certs/ # If you have your SSL certificate uncomment it and copy to /app/apps/certs directory
# links:
# - authdb:authdb
# networks:
# - Network_apps
volumes:
azure-board-processorvol:
azure-pipeline-repovol:
devops-processorvol:
jira-processorvol:
uivol:
customapivol:
mongodbvol:
# scm-processor-scanner-storage: # uncomment if you are using scm-processor
# scm-processor-postgres-data: # uncomment if you are using scm-processor
# authdata: # uncomment if you are using authNauth application
networks:
Network_apps: