forked from sovity/edc-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
208 lines (188 loc) · 6.08 KB
/
docker-compose-dev.yaml
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
version: "3.8"
services:
edc-ui:
image: ${EDC_UI_IMAGE}
ports:
- '11000:8080'
- '11015:5005'
environment:
EDC_UI_ACTIVE_PROFILE: ${EDC_UI_ACTIVE_PROFILE}
EDC_UI_CONFIG_URL: edc-ui-config
EDC_UI_MANAGEMENT_API_URL: http://localhost:11002/api/management
EDC_UI_MANAGEMENT_API_KEY: ApiKeyDefaultValue
EDC_UI_CATALOG_URLS: http://edc2:11003/api/dsp
EDC_UI_MANAGEMENT_API_URL_SHOWN_IN_DASHBOARD: http://localhost:11002/control/api/management
NGINX_ACCESS_LOG: off
edc:
image: ${EDC_IMAGE}
depends_on:
postgresql:
condition: service_healthy
environment:
MY_EDC_PARTICIPANT_ID: "my-edc"
MY_EDC_TITLE: "EDC Connector"
MY_EDC_DESCRIPTION: "sovity Community Edition EDC Connector"
MY_EDC_CURATOR_URL: "https://example.com"
MY_EDC_CURATOR_NAME: "Example GmbH"
MY_EDC_MAINTAINER_URL: "https://sovity.de"
MY_EDC_MAINTAINER_NAME: "sovity GmbH"
MY_EDC_FQDN: "edc"
EDC_API_AUTH_KEY: ApiKeyDefaultValue
MY_EDC_JDBC_URL: jdbc:postgresql://postgresql:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
# docker compose local dev environment overrides (don't use with non-dev images)
MY_EDC_PROTOCOL: "http://"
EDC_DSP_CALLBACK_ADDRESS: http://edc:11003/api/dsp
EDC_WEB_REST_CORS_ENABLED: 'true'
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,X-Api-Key'
EDC_WEB_REST_CORS_ORIGINS: '*'
EDC_AGENT_IDENTITY_KEY: 'client_id' # required for Mock IAM to work
ports:
- '11001:11001'
- '11002:11002'
- '11003:11003'
- '11004:11004'
- '11005:5005'
edc-ui2:
image: ${EDC_UI_IMAGE}
ports:
- '22000:8080'
environment:
EDC_UI_ACTIVE_PROFILE: ${EDC_UI_ACTIVE_PROFILE}
EDC_UI_CONFIG_URL: edc-ui-config
EDC_UI_MANAGEMENT_API_URL: http://localhost:22002/api/management
EDC_UI_MANAGEMENT_API_KEY: ApiKeyDefaultValue
EDC_UI_CATALOG_URLS: http://edc:11003/api/dsp
NGINX_ACCESS_LOG: off
edc2:
image: ${EDC_IMAGE}
depends_on:
postgresql2:
condition: service_healthy
environment:
MY_EDC_PARTICIPANT_ID: "my-edc2"
MY_EDC_TITLE: "EDC Connector 2"
MY_EDC_DESCRIPTION: "sovity Community Edition EDC Connector"
MY_EDC_CURATOR_URL: "https://example.com"
MY_EDC_CURATOR_NAME: "Example GmbH"
MY_EDC_MAINTAINER_URL: "https://sovity.de"
MY_EDC_MAINTAINER_NAME: "sovity GmbH"
MY_EDC_FQDN: "edc2"
EDC_API_AUTH_KEY: ApiKeyDefaultValue
MY_EDC_JDBC_URL: jdbc:postgresql://postgresql2:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
# docker compose local dev environment overrides (don't use with non-dev images)
MY_EDC_PROTOCOL: "http://"
EDC_DSP_CALLBACK_ADDRESS: http://edc2:11003/api/dsp
EDC_WEB_REST_CORS_ENABLED: 'true'
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,X-Api-Key'
EDC_WEB_REST_CORS_ORIGINS: '*'
EDC_AGENT_IDENTITY_KEY: 'client_id' # required for Mock IAM to work
ports:
- '22001:11001'
- '22002:11002'
- '22003:11003'
- '22004:11004'
- '22005:5005'
test-backend:
image: ${TEST_BACKEND_IMAGE}
ports:
- '33001:11001'
broker-ui:
image: ${EDC_UI_IMAGE}
ports:
- '44000:8080'
environment:
EDC_UI_ACTIVE_PROFILE: broker
EDC_UI_MANAGEMENT_API_URL: http://localhost:44002/backend/api/management
EDC_UI_MANAGEMENT_API_KEY: ApiKeyDefaultValue
NGINX_ACCESS_LOG: off
broker:
image: ${BROKER_IMAGE}
depends_on:
broker-postgresql:
condition: service_healthy
edc:
condition: service_started
edc2:
condition: service_started
environment:
EDC_BROKER_SERVER_KNOWN_CONNECTORS: "http://edc:11003/api/dsp,http://edc2:11003/api/dsp"
EDC_BROKER_SERVER_KNOWN_DATASPACE_CONNECTORS: "Mobilithek=https://some-other-connector/api/dsp"
# Hide offline data offers after 1 minute in dev
EDC_BROKER_SERVER_HIDE_OFFLINE_DATA_OFFERS_AFTER: "PT1M"
MY_EDC_FQDN: "broker"
EDC_API_AUTH_KEY: ApiKeyDefaultValue
MY_EDC_JDBC_URL: jdbc:postgresql://broker-postgresql:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
# docker compose local dev environment overrides (don't use with non-dev images)
MY_EDC_PROTOCOL: "http://"
EDC_DSP_CALLBACK_ADDRESS: http://broker:44003/backend/api/dsp
EDC_WEB_REST_CORS_ENABLED: 'true'
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,x-api-key'
EDC_WEB_REST_CORS_ORIGINS: '*'
EDC_AGENT_IDENTITY_KEY: 'client_id' # required for Mock IAM to work
ports:
- '44001:11001'
- '44002:11002'
- '44003:11003'
- '44004:11004'
- '44005:5005'
postgresql:
image: docker.io/bitnami/postgresql:15
restart: always
environment:
POSTGRESQL_USERNAME: edc
POSTGRESQL_PASSWORD: edc
POSTGRESQL_DATABASE: edc
ports:
- '54321:5432'
volumes:
- 'postgresql:/bitnami/postgresql'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U edc" ]
interval: 1s
timeout: 5s
retries: 10
postgresql2:
image: docker.io/bitnami/postgresql:15
restart: always
environment:
POSTGRESQL_USERNAME: edc
POSTGRESQL_PASSWORD: edc
POSTGRESQL_DATABASE: edc
ports:
- '54322:5432'
volumes:
- 'postgresql2:/bitnami/postgresql'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U edc" ]
interval: 1s
timeout: 5s
retries: 10
broker-postgresql:
image: docker.io/bitnami/postgresql:15
restart: always
environment:
POSTGRESQL_USERNAME: edc
POSTGRESQL_PASSWORD: edc
POSTGRESQL_DATABASE: edc
ports:
- '54323:5432'
volumes:
- 'broker-postgresql:/bitnami/postgresql'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U edc"]
interval: 1s
timeout: 5s
retries: 10
volumes:
postgresql:
driver: local
postgresql2:
driver: local
broker-postgresql:
driver: local