-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdocker-compose.yml
180 lines (169 loc) · 5.53 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
version: '3.0'
services:
omejdn:
image: nginx:1.25.3
container_name: omejdn
ports:
- 80:80
- 443:443
environment:
- OMEJDN_DOMAIN=${OMEJDN_DOMAIN}
- OMEJDN_PATH=${OMEJDN_PATH}
- UI_PATH=${UI_PATH}
volumes:
- ./DAPS/nginx.conf:/etc/nginx/templates/default.conf.template
- ./DAPS/keys/TLS/daps.cert:/etc/nginx/daps.cert
- ./DAPS/keys/TLS/daps.key:/etc/nginx/daps.key
networks:
- local
omejdn-server:
image: ghcr.io/fraunhofer-aisec/omejdn-server:${OMEJDN_VERSION}
container_name: omejdn-server
environment:
- OMEJDN_ISSUER=${OMEJDN_ISSUER}
- OMEJDN_FRONT_URL=${OMEJDN_ISSUER}
- OMEJDN_OPENID=true
- OMEJDN_ENVIRONMENT=${OMEJDN_ENVIRONMENT}
- OMEJDN_ACCEPT_AUDIENCE=idsc:IDS_CONNECTORS_ALL
- OMEJDN_DEFAULT_AUDIENCE=idsc:IDS_CONNECTORS_ALL
- OMEJDN_ADMIN=${ADMIN_USERNAME}:${ADMIN_PASSWORD}
volumes:
- ./DAPS/config:/opt/config
- ./DAPS/keys:/opt/keys
networks:
- local
omejdn-ui:
image: ghcr.io/fraunhofer-aisec/omejdn-ui:${UI_VERSION}
container_name: omejdn-ui
environment:
- OIDC_ISSUER=${OMEJDN_ISSUER}
- API_URL=${OMEJDN_ISSUER}/api/v1
- CLIENT_ID=adminUI
networks:
- local
# Add the PostgreSQL container to be used by DataspaceConnectorA and DataspaceConnectorB
postgresa:
image: postgres:13
container_name: 'postgresa-container'
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgresusera
- POSTGRES_PASSWORD=password
- POSTGRES_DB=connectoradb
volumes:
- connector-dataa:/var/lib/postgresql/data
networks:
- local
postgresb:
image: postgres:13
container_name: 'postgresb-container'
ports:
- "5433:5432"
environment:
- POSTGRES_USER=postgresuserb
- POSTGRES_PASSWORD=password
- POSTGRES_DB=connectorbdb
volumes:
- connector-datab:/var/lib/postgresql/data
networks:
- local
connectora:
image: ghcr.io/international-data-spaces-association/dataspace-connector:8.0.2
container_name: connectora
ports:
- 8080:8080
environment:
- CONFIGURATION_PATH=/config/config.json
- DAPS_URL=https://omejdn
- DAPS_TOKEN_URL=https://omejdn/auth/token
- DAPS_KEY_URL=https://omejdn/auth/jwks.json
- DAPS_INCOMING_DAT_DEFAULT_WELLKNOWN=/jwks.json
- SERVER_SSL_KEY-STORE=file:///conf/connectorA.p12
# Define the PostgreSQL setup
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresa:5432/connectoradb
- SPRING_DATASOURCE_PLATFORM=postgres
- SPRING_DATASOURCE_DRIVERCLASSNAME=org.postgresql.Driver
- SPRING_DATASOURCE_USERNAME=postgresusera
- SPRING_DATASOURCE_PASSWORD=password
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
volumes:
- ./DataspaceConnectorA/conf/config.json:/config/config.json
- ./DataspaceConnectorA/conf/connectorA.p12:/conf/connectorA.p12
- ./DataspaceConnectorA/conf/truststore.p12:/config/truststore.p12
networks:
- local
depends_on:
- postgresa
connectorb:
image: ghcr.io/international-data-spaces-association/dataspace-connector:8.0.2
container_name: connectorb
ports:
- 8081:8081
environment:
- CONFIGURATION_PATH=/config/config.json
- SERVER_PORT=8081
- DAPS_URL=https://omejdn
- DAPS_TOKEN_URL=https://omejdn/auth/token
- DAPS_KEY_URL=https://omejdn/auth/jwks.json
- DAPS_INCOMING_DAT_DEFAULT_WELLKNOWN=/jwks.json
- SERVER_SSL_KEY-STORE=file:///conf/connectorB.p12
# Define the PostgreSQL setup
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresb:5432/connectorbdb
- SPRING_DATASOURCE_USERNAME=postgresuserb
- SPRING_DATASOURCE_PASSWORD=password
- SPRING_DATASOURCE_PLATFORM=postgres
- SPRING_DATASOURCE_DRIVERCLASSNAME=org.postgresql.Driver
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
volumes:
- ./DataspaceConnectorB/conf/config.json:/config/config.json
- ./DataspaceConnectorB/conf/connectorB.p12:/conf/connectorB.p12
- ./DataspaceConnectorB/conf/truststore.p12:/config/truststore.p12
networks:
- local
depends_on:
- postgresb
broker-reverseproxy:
image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/reverseproxy
container_name: broker-reverseproxy
volumes:
- ./MetadataBroker/server.crt:/etc/cert/server.crt
- ./MetadataBroker/server.key:/etc/cert/server.key
ports:
- "444:443" # IDS-HTTP API
- "81:80"
networks:
- local
broker-core:
image: idstestbed/metadatabroker-core:5.0.3
container_name: broker-core
volumes:
- ./MetadataBroker/isstbroker-keystore.jks:/etc/cert/isstbroker-keystore.jks
environment:
- SPARQL_ENDPOINT=http://broker-fuseki:3030/connectorData
- ELASTICSEARCH_HOSTNAME=broker-elasticsearch
- SHACL_VALIDATION=true
- DAPS_VALIDATE_INCOMING=true
- COMPONENT_URI=https://broker-reverseproxy/
- COMPONENT_CATALOGURI=https://broker-reverseproxy/connectors/
- DAPS_URL=https://omejdn/auth/token
expose:
- "8080"
networks:
- local
broker-fuseki:
image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/fuseki
container_name: broker-fuseki
volumes:
- broker-fuseki:/fuseki
expose:
- "3030"
networks:
- local
volumes:
broker-fuseki: {}
connector-dataa: {}
connector-datab: {}
networks:
local:
driver: bridge