-
Notifications
You must be signed in to change notification settings - Fork 1
/
connector_with_traefik.yaml
109 lines (95 loc) · 4.48 KB
/
connector_with_traefik.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
version: "3.8"
services:
edc-ui:
image: ghcr.io/sovity/edc-ui:4.1.7
environment:
- EDC_UI_CATALOG_URLS=
- EDC_UI_ACTIVE_PROFILE=mds-open-source
- EDC_UI_CONFIG_URL=edc-ui-config
- EDC_UI_MANAGEMENT_API_URL=https://[set your connector address]/api/management
- EDC_UI_MANAGEMENT_API_KEY=[set your API Key value]
labels:
- "traefik.enable=true"
- "traefik.http.routers.edc-ui.rule=Host(`[set your connector address]`)"
- "traefik.http.routers.edc-ui.entrypoints=websecure"
- "traefik.http.routers.edc-ui.tls.certresolver=myresolver"
- "traefik.http.routers.edc-ui.service=edc-ui"
- "traefik.http.services.edc-ui.loadbalancer.server.port=8080"
edc:
image: ghcr.io/sovity/edc-ce-mds:10.4.2
depends_on:
- postgresql
environment:
EDC_OAUTH_TOKEN_URL: "https://daps-next.test.mobility-dataspace.eu/realms/DAPS/protocol/openid-connect/token"
EDC_OAUTH_PROVIDER_JWKS_URL: "https://daps-next.test.mobility-dataspace.eu/realms/DAPS/protocol/openid-connect/certs"
EDC_LOGGINGHOUSE_EXTENSION_ENABLED: "true"
EDC_LOGGINGHOUSE_EXTENSION_URL: "https://clearing-next.test.mobility-dataspace.eu" #LoggingHouse URL of the MDS environment
EDC_OAUTH_CLIENT_ID: "[set your oauth client id]"
MY_EDC_PARTICIPANT_ID: "[set your connector participant id]"
EDC_KEYSTORE: "[set your cert path and name]"
EDC_KEYSTORE_PASSWORD: "[set your cert password]"
EDC_OAUTH_CERTIFICATE_ALIAS: 1
EDC_OAUTH_PRIVATE_KEY_ALIAS: 1
MY_EDC_TITLE: "[set your connector name]"
MY_EDC_DESCRIPTION: "[set your connector description]"
MY_EDC_CURATOR_URL: "[set your organization homepage]"
MY_EDC_CURATOR_NAME: "[set your organization name]"
MY_EDC_MAINTAINER_URL: "[set your maintainer homepage if applicable]"
MY_EDC_MAINTAINER_NAME: "[set your maintainer name if applicable]"
MY_EDC_FQDN: "[set your connector domain, e.g. my-connector.com]"
EDC_API_AUTH_KEY: [set your API Key value]
MY_EDC_JDBC_URL: jdbc:postgresql://postgresql:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
MY_EDC_PROTOCOL: "https://"
EDC_DSP_CALLBACK_ADDRESS: https://[set your connector address]/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: '*'
labels:
- "traefik.enable=true"
- "traefik.http.routers.edc-dsp.rule=Host(`[set your connector address]`) && PathPrefix(`/api/dsp`)"
- "traefik.http.routers.edc-dsp.entrypoints=websecure"
- "traefik.http.routers.edc-dsp.tls.certresolver=myresolver"
- "traefik.http.routers.edc-dsp.service=edc-dsp"
- "traefik.http.services.edc-dsp.loadbalancer.server.port=11003"
- "traefik.http.routers.edc-management.rule=Host(`[set your connector address]`) && PathPrefix(`/api/management`)"
- "traefik.http.routers.edc-management.entrypoints=websecure"
- "traefik.http.routers.edc-management.tls.certresolver=myresolver"
- "traefik.http.routers.edc-management.service=edc-management"
- "traefik.http.services.edc-management.loadbalancer.server.port=11002"
volumes:
- /[set your cert path]/[set your cert name].jks:/[set your cert name].jks
traefik:
image: "traefik:v3.1.2"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.myresolver.acme.email=[set the email you used by cert creation]"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
postgresql:
image: docker.io/bitnami/postgresql:16
restart: always
environment:
POSTGRESQL_USERNAME: edc
POSTGRESQL_PASSWORD: edc
POSTGRESQL_DATABASE: edc
volumes:
- 'postgresql:/bitnami/postgresql'
volumes:
postgresql:
driver: local
letsencrypt: