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
/
docker-compose.override.yml
238 lines (206 loc) · 7.05 KB
/
docker-compose.override.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
version: "3"
services:
### Shared services - databases + sso
####################################
elasticsearch5:
volumes:
- /usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
- cluster.name=elasticsearch
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
fuseki:
volumes:
- /etc/fuseki/databases/
ports:
- "3030:8080"
postgres:
restart: always
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
volumes:
- /var/lib/postgresql/data
ports:
- "5432:5432"
# OIDC requires host names to be available both in service and for browsers for redirects.
# The simplest way to achieve this is to register the service names as hostnames also in the host machine hosts file:
# mac: /private/etc/hosts
# windows c:\Windows\System32\Drivers\etc\hosts
# add one line:
# 127.0.0.1 sso
sso:
volumes:
#use this for theme development
#- ../fdk/applications/sso/themes/fdk:/opt/jboss/keycloak/themes/fdk
#- ../fdk/applications/sso/themes/fdk-choose-provider:/opt/jboss/keycloak/themes/fdk-choose-provider
#this allows to run command "npm run keycloak-export"
- ../sso/export:/tmp/keycloak/export
#with link, et is enough to restart container to perform, instead of rebuild
- ../sso/import:/tmp/keycloak/import
- ../sso/import-template:/tmp/keycloak/import-template
- ../sso/tools:/opt/fdk/tools
# cp libraries/keycloak-user-storage-rest/target/keycloak-user-storage-rest.jar applications-external/sso/deployments/
# - ./applications/sso/deployments:/opt/jboss/keycloak/standalone/deployments
environment:
- DB_VENDOR=POSTGRES
- DB_ADDR=postgres
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_SCHEMA=public
- DB_PASSWORD=password
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
# - KEYCLOAK_LOGLEVEL=DEBUG
- SSO_HOST=http://localhost:8084
- REGISTRATION_HOST=http://localhost:8098
- DEV_REGISTRATION_HOST=http://localhost:4301
- CONCEPT_CATALOGUE_HOST=http://localhost:8202
- DEV_CONCEPT_CATALOGUE_HOST=http://localhost:8203
- FDK_ADMIN_GUI_HOST=http://localhost:8136
- DEV_FDK_ADMIN_GUI_HOST=http://localhost:8137
- RECORDS_OF_PROCESSING_ACTIVITIES_GUI_HOST=http://localhost:8140
- DEV_RECORDS_OF_PROCESSING_ACTIVITIES_GUI_HOST=http://localhost:8141
# This is local mock for ID-Porten, use this in dev, ut1 and st1. in it1 use idporten test, and in prod use idporten prod
- IDPORTEN_OIDC_ROOT=http://localhost:8084/auth/realms/idporten-mock
- IDPORTEN_CLIENT_ID=oidc_brreg_fellesdatakatalog
- IDPORTEN_CLIENT_SECRET=29a2cfe1-1a61-4a04-bf84-64d70a340d04
depends_on:
- postgres
ports:
- "8084:8084"
### ingress modules
##################################
fdk-nginx-search:
ports:
- "8080:8080"
fdk-nginx-registration:
ports:
- "8098:8080"
### external service proxies
##################################
# disabled in dev because we use mock
# fdk-nginx-altinn-proxy:
# ports:
# - "8126:8080"
# disabled in dev because we use mock
#fdk-nginx-enhetsregisteret-proxy:
# ports:
# - "8130:8080"
### nodejs services
####################################
fdk-portal:
ports:
- "3000:8080"
volumes:
- ./applications/search/src:/usr/src/app/src
environment:
- REDUX_LOG
dataset-catalogue-gui:
ports:
- "4300:8080"
volumes:
- ../dataset-catalogue-gui/src:/usr/src/app/src
environment:
- REDUX_LOG
- CONCEPT_REGISTRATION_API_HOST=http://localhost:8200
- CONCEPT_REGISTRATION_HOST=http://localhost:8202
- SEARCH_HOST=http://localhost:8080
- SSO_HOST=http://localhost:8084
dataset-catalogue:
ports:
- "8114:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- registrationApi_harvesterUsername=test_admin
- registrationApi_harvesterPassword=password
- LOG_LEVEL=DEBUG
- LOG_FORMAT=compact
- FDK_ENHETSREGISTERET_PROXY_URL=http://fdk-nginx-enhetsregisteret-proxy-mock:8080/enhetsregisteret/api/enheter/
- ORGANIZATION_CATALOGUE_URL=http://organization-catalogue:8080/
api-catalogue:
ports:
- "8116:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- registrationApi_harvesterUsername=test_admin
- registrationApi_harvesterPassword=password
- LOG_LEVEL=DEBUG
- LOG_FORMAT=compact
### java services
#############################
fdk-api-harvester:
ports:
- "8102:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- LOG_LEVEL=DEBUG
- LOG_FORMAT=compact
concept-cat:
ports:
- "8104:8080"
environment:
- JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- LOG_LEVEL=DEBUG
informationmodel-cat:
ports:
- "8108:8080"
environment:
- JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom -Xmx512M -Dspring.profiles.active=docker
- LOG_LEVEL=DEBUG
harvester:
ports:
- "8082:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- harvester_adminUsername=test_admin
- harvester_adminPassword=password
fdk-dataset-harvester:
ports:
- "8106:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx1024M -Dspring.profiles.active=docker
- application.crawlerThreadPoolSize=2
- harvestRecordRetentionDays=30
- LOG_FORMAT=compact
reference-data:
ports:
- "8112:8080"
environment:
- JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
- FDK_SQL_JDBC_CONNECTION=jdbc:postgresql://postgres:5432/postgres?currentSchema=fdkreference
- FDK_SQL_USERNAME=postgres
- FDK_SQL_PASSWORD=password
fdk-dataset-api:
ports:
- "8118:8080"
environment:
- JAVA_OPTS= -ea -Djava.security.egd=file:/dev/./urandom -Xmx256M -Dspring.profiles.active=docker
user-api:
ports:
- "8124:8080"
environment:
- ALTINN_PROXY_HOST=http://fdk-nginx-altinn-proxy-mock:8080
- ORGNR_WHITELIST=920210023,910258028
- ORGFORM_WHITELIST=ADOS,FKF,FYLK,IKS,KF,KIRK,KOMM,ORGL,SF,STAT,SÆR
- ADMIN_LIST=23076102252
depends_on:
- fdk-nginx-altinn-proxy-mock
### test and mock modules
###########################
fdk-nginx-altinn-proxy-mock:
ports:
- "8128:8080"
fdk-nginx-enhetsregisteret-proxy-mock:
ports:
- "8132:8080"
e2e:
build: ./applications/e2e
volumes:
- ./applications/e2e/test:/usr/src/app/test
- ./applications/e2e/reports:/usr/src/app/reports