This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
229 lines (198 loc) · 5 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
version: "3"
services:
### external modules
####################################
elasticsearch5:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
expose:
- "9200"
- "9300"
environment:
- cluster.name
- xpack.security.enabled
fuseki:
image: eu.gcr.io/fdk-infra/fuseki:latest
volumes:
- fuseki-data:/etc/fuseki/databases/
expose:
- "8080"
postgres:
image: postgres:11.2
volumes:
- postgres-data:/var/lib/postgresql/data
expose:
- "5432"
sso:
image: eu.gcr.io/fdk-infra/sso:latest
expose:
- "8084"
environment:
- KEYCLOAK_USER
- KEYCLOAK_PASSWORD
- IDPORTEN_CLIENT_ID
- IDPORTEN_CLIENT_SECRET
# if SSO_HOST and IDPORTEN_OIDC are on the same host, then deploy mock setup is deployed
- IDPORTEN_OIDC_ROOT
- SSO_HOST
- REGISTRATION_HOST
- CONCEPT_CATALOGUE_HOST
- FDK_ADMIN_GUI_HOST
#optional
- EMAIL_VERIFY
- SMTP_FROM
- SMTP_FROM_NAME
- SMTP_HOST
- SMTP_USER
- SMTP_PASSWORD
### ingress modules
##################################
fdk-nginx-search:
image: eu.gcr.io/fdk-infra/fdk-nginx-search:latest
expose:
- "8080"
depends_on:
- fdk-portal
- fdk-dataset-api
- fdk-dataset-harvester
- fdk-api-harvester
- concept-cat
- informationmodel-cat
fdk-nginx-registration:
image: eu.gcr.io/fdk-infra/fdk-nginx-registration:latest
expose:
- "8080"
depends_on:
- dataset-catalogue-gui
- dataset-catalogue
- api-catalogue
- reference-data
- fdk-dataset-api
- fdk-api-harvester
- concept-cat
### external service proxies
##################################
#docker-compose does not allow removing services this is actually prod configuration
# fdk-nginx-altinn-proxy:
# image: eu.gcr.io/fdk-infra/fdk-nginx-altinn-proxy:latest
# expose:
# - "8080"
# environment:
# - ALTINN_HOST
# - ALTINN_API_KEY
# - ALTINN_SSL_BR_CRT_PEM
# - ALTINN_SSL_BR_KEY_PEM
#docker-compose does not allow removing services this is actually prod configuration
# fdk-nginx-enhetsregisteret-proxy:
# image: eu.gcr.io/fdk-infra/fdk-nginx-enhetsregisteret-proxy
# expose:
# - "8080"
### nodejs services
####################################
fdk-portal:
image: eu.gcr.io/fdk-infra/fdk-portal:latest
expose:
- "8080"
environment:
- NODE_ENV
- DISQUS_SHORTNAME
dataset-catalogue-gui:
image: eu.gcr.io/fdk-infra/dataset-catalogue-gui:latest
expose:
- "4300"
environment:
- NODE_ENV
- REGISTRATION_LANGUAGE
- SEARCH_HOST
- SSO_HOST
### java services
#############################
fdk-api-harvester:
image: eu.gcr.io/fdk-infra/fdk-api-harvester:latest
expose:
- "8080"
depends_on:
- elasticsearch5
- reference-data
- fdk-dataset-api
concept-cat:
image: dcatno/concept-cat:latest
expose:
- "8080"
informationmodel-cat:
image: dcatno/informationmodel-cat:latest
expose:
- "8080"
fdk-dataset-harvester-gui:
image: eu.gcr.io/fdk-infra/fdk-dataset-harvester-gui:latest
expose:
- "8080"
depends_on:
- fuseki
- fdk-dataset-harvester
fdk-dataset-harvester:
image: eu.gcr.io/fdk-infra/fdk-dataset-harvester:latest
expose:
- "8080"
depends_on:
- fuseki
- elasticsearch5
- reference-data
dataset-catalogue:
image: eu.gcr.io/fdk-infra/dataset-catalogue:latest
ports:
- "8080"
depends_on:
- elasticsearch5
- reference-data
- fdk-api-harvester
api-catalogue:
image: eu.gcr.io/fdk-infra/api-catalogue:latest
ports:
- "8080"
depends_on:
- elasticsearch5
- reference-data
- fdk-api-harvester
reference-data:
image: dcatno/reference-data:latest
expose:
- "8080"
depends_on:
- postgres
fdk-dataset-api:
image: eu.gcr.io/fdk-infra/fdk-dataset-api:latest
expose:
- "8080"
depends_on:
- elasticsearch5
user-api:
image: eu.gcr.io/fdk-infra/user-api:latest
expose:
- "8080"
depends_on:
# in prod, it would be ngninx-altinn-proxy
- fdk-nginx-altinn-proxy-mock
environment:
- ALTINN_PROXY_HOST
- ORGNR_WHITELIST
- ORGFORM_WHITELIST
### test and mock modules
###########################
fdk-nginx-altinn-proxy-mock:
image: eu.gcr.io/fdk-nginx-altinn-proxy-mock:latest
expose:
- "8080"
fdk-nginx-enhetsregisteret-proxy-mock:
image: eu.gcr.io/fdk-nginx-enhetsregisteret-proxy-mock:latest
expose:
- "8080"
# TODO this is not a service, does not need to be always started, implement as "run" command instead
e2e:
image: dcatno/e2e:latest
volumes:
- ./applications/e2e/test:/usr/src/app/test:rw
volumes:
fuseki-data:
elasticsearch-data: