-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
136 lines (133 loc) · 4.08 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
# SPDX-FileCopyrightText: NOI Techpark <[email protected]>
#
# 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_CONSTRAINT_FILE: /opt/ontop/input/odh.constraints
ONTOP_PORTAL_FILE: /opt/ontop/input/odh.portal.toml
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",
]
#entrypoint: "tail -f /dev/null"
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_CONSTRAINT_FILE: /opt/ontop/input/odh.constraints
ONTOP_PORTAL_FILE: /opt/ontop/input/odh_guest.portal.toml
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",
]
nginx:
build:
context: ./
dockerfile: infrastructure/docker/nginx/Dockerfile
target: dev
env_file: .env
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
volumes:
pgdata-tourism-master: {}
pgdata-mobility-master: {}
pgdata-replica: {}