-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.auth.yml
172 lines (168 loc) · 5.21 KB
/
docker-compose.auth.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
# SPDX-FileCopyrightText: NOI Techpark <digital@noi.bz.it>
#
# SPDX-License-Identifier: CC0-1.0
version: "3.4"
services:
ontop:
build:
context: ./
dockerfile: infrastructure/docker/ontop/Dockerfile
target: dev
env_file: .env
restart: unless-stopped
environment:
ONTOP_ONTOLOGY_FILE: /opt/ontop/input/odh.ttl
ONTOP_XML_CATALOG_FILE: /opt/ontop/input/catalog-v001.xml
ONTOP_MAPPING_FILE: /opt/ontop/input/odh.obda
ONTOP_PROPERTIES_FILE: /opt/ontop/input/odh.docker.properties
ONTOP_PORTAL_FILE: /opt/ontop/input/odh.portal.toml
ONTOP_CONSTRAINT_FILE: /opt/ontop/input/odh.constraints
ONTOP_PREDEFINED_CONFIG: /opt/ontop/input/predefined/predefined.json
ONTOP_PREDEFINED_QUERIES: /opt/ontop/input/predefined/queries.toml
ONTOP_CONTEXTS: /opt/ontop/input/predefined/contexts.json
ONTOP_CORS_ALLOWED_ORIGINS: "*"
ONTOP_DEV_MODE: "true"
EXTRA_FLYWAY_OPTIONS: "-mixed=true"
volumes:
- ./vkg:/opt/ontop/input
- ./jdbc:/opt/ontop/jdbc
- ./src:/opt/ontop/src
entrypoint:
[
"/wait-for-it.sh",
"tourism-master-db:5432",
"--timeout=0",
"--strict",
"--",
"/wait-for-it.sh",
"mobility-master-db:5432",
"--timeout=0",
"--strict",
"--",
"/wait-for-it.sh",
"slave-db:5432",
"--timeout=0",
"--strict",
"--",
"/entrypoint.sh",
]
ontop-guest:
image: ontop/ontop-endpoint:4.2.0
env_file: .env
restart: unless-stopped
environment:
ONTOP_ONTOLOGY_FILE: /opt/ontop/input/odh.ttl
ONTOP_XML_CATALOG_FILE: /opt/ontop/input/catalog-v001.xml
ONTOP_MAPPING_FILE: /opt/ontop/input/odh_guest.obda
ONTOP_PROPERTIES_FILE: /opt/ontop/input/odh.docker.properties
ONTOP_PORTAL_FILE: /opt/ontop/input/odh_guest.portal.toml
ONTOP_CONSTRAINT_FILE: /opt/ontop/input/odh.constraints
ONTOP_PREDEFINED_CONFIG: /opt/ontop/input/predefined/predefined.json
ONTOP_PREDEFINED_QUERIES: /opt/ontop/input/predefined/queries.toml
ONTOP_CONTEXTS: /opt/ontop/input/predefined/contexts.json
ONTOP_CORS_ALLOWED_ORIGINS: "*"
ONTOP_DEV_MODE: "true"
EXTRA_FLYWAY_OPTIONS: "-mixed=true"
volumes:
- ./vkg:/opt/ontop/input
- ./jdbc:/opt/ontop/jdbc
- ./src:/opt/ontop/src
- ./wait-for-it:/opt/wait-for-it
entrypoint:
[
"/opt/wait-for-it/wait-for-it.sh",
"tourism-master-db:5432",
"--timeout=0",
"--strict",
"--",
"/opt/wait-for-it/wait-for-it.sh",
"mobility-master-db:5432",
"--timeout=0",
"--strict",
"--",
"/opt/wait-for-it/wait-for-it.sh",
"slave-db:5432",
"--timeout=0",
"--strict",
"--",
"/opt/ontop/entrypoint.sh",
]
oauth2:
image: quay.io/oauth2-proxy/oauth2-proxy:v7.0.1
env_file: .env
restart: unless-stopped
command: [
"--provider=oidc",
"--oidc-issuer-url=${KEYCLOAK_REALM_URL}",
"--allowed-group=${KEYCLOAK_ALLOWED_GROUPS}",
"--scope=openid email profile",
"--email-domain=*",
"--http-address=0.0.0.0:4180",
"--set-xauthrequest",
"--pass-access-token",
"--skip-provider-button",
"--cookie-refresh=1m",
"--whitelist-domain=${KEYCLOAK_DOMAIN_NAME}",
"--session-store-type=redis",
"--redis-connection-url=redis://redis",
# local development-only
"--cookie-secure=false",
"--insecure-oidc-allow-unverified-email",
"--redirect-url=http://localhost:${SERVER_PORT}/oauth2/callback",
]
environment:
OAUTH2_PROXY_CLIENT_ID: "${KEYCLOAK_CLIENT_ID}"
OAUTH2_PROXY_CLIENT_SECRET: "${KEYCLOAK_CLIENT_SECRET}"
OAUTH2_PROXY_COOKIE_SECRET: "${AUTH_PROXY_COOKIE_SECRET}"
networks:
- default
- redis-internal
redis:
image: redis:6.2-alpine
networks:
- redis-internal
nginx:
build:
context: ./
dockerfile: infrastructure/docker/nginx/Dockerfile
env_file: .env
restart: unless-stopped
ports:
- "${SERVER_PORT}:80"
tourism-master-db:
image: ontopicvkg/odh-tourism-db:master
environment:
- POSTGRES_USER=tourismuser
- POSTGRES_PASSWORD=postgres2
volumes:
- pgdata-tourism-master:/var/lib/postgresql/data
ports:
- "${DEV_TOURISM_MASTER_POSTGRES_PORT}:5432"
mobility-master-db:
image: registry.gitlab.com/ontopic/odh-vkg-images/odh-mobility-db:master
environment:
- POSTGRES_DB=mobilitydb
- POSTGRES_USER=tourismuser
- POSTGRES_PASSWORD=postgres2
volumes:
- pgdata-mobility-master:/var/lib/postgresql/data
ports:
- "${DEV_MOBILITY_MASTER_POSTGRES_PORT}:5432"
slave-db:
image: postgis/postgis:13-3.1-alpine
#image: postgres:13.1-alpine
shm_size: 1g
ports:
- "${MAPPED_POSTGRES_PORT}:5432"
command: ["postgres", "-c", "wal_level=logical"]
volumes:
- pgdata-replica:/var/lib/postgresql/data
environment:
- POSTGRES_USER=tourismuser
- POSTGRES_PASSWORD=postgres2
networks:
redis-internal:
volumes:
pgdata-tourism-master: {}
pgdata-mobility-master: {}
pgdata-replica: {}