-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ontoraster.yml
105 lines (99 loc) · 2.98 KB
/
docker-compose.ontoraster.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
version: "3.8"
services:
rasdatabase:
container_name: rasdatabase
build:
context: rasdatabase
environment:
POSTGRES_USER: petauser
POSTGRES_PASSWORD: petapasswd
# petascopedb is the default database name for rasdaman
# vectordb will store other geospatial vector data
POSTGRES_DB: petascopedb
POSTGRES_MULTIPLE_DATABASES: petascopedb, vectordb
ports:
- "${MAPPED_POSTGRES_PORT}:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -h rasdatabase" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- rasdaman-network
extra_hosts:
- "host.docker.internal:host-gateway"
rasdaman:
container_name: rasdaman
build:
context: rasdaman
# TODO: Must find a good way to do this for an arbitrary file
healthcheck:
#"http://host.docker.internal:8080/rasdaman/ows" can be reached before the file is loaded, not a good test
test: [ "CMD", "curl", "-f", "http://host.docker.internal:8080/rasdaman/ows" ]
#currently failing
#test: ["CMD-SHELL", "docker logs rasdaman | grep -q \"Recipe at '/data/Bavaria_Temp.json' executed successfully\""]
interval: 30s
timeout: 10s
retries: 5
# Provide ample time for the rasdaman server to start
start_period: 45s
ports:
- "${RASDAMAN_SERVER_PORT}:8080"
- "7001:7001" # Rasdaman server client connections
- "7002:7002" # Rasdaman server inter-server communication
- "7003:7003" # Rasdaman server internal communication
depends_on:
rasdatabase:
condition: service_healthy
networks:
- rasdaman-network
extra_hosts:
- "host.docker.internal:host-gateway"
pgsql:
build:
context: db_pgsql
container_name: pgsql
depends_on:
rasdaman:
condition: service_healthy
networks:
- rasdaman-network
ontop:
container_name: ontop
image: aghoshpro/ontoraster:v1.51 # OR albulenpano/geosparql_1.1:v5 for geof:centroid
env_file: .env
environment:
ONTOP_ONTOLOGY_FILE: /opt/ontop/input/OntoRaster.owx
ONTOP_XML_CATALOG_FILE: /opt/ontop/input/catalog-v001.xml
ONTOP_MAPPING_FILE: /opt/ontop/input/OntoRaster.obda
ONTOP_PROPERTIES_FILE: /opt/ontop/input/OntoRaster.properties
ONTOP_PORTAL_FILE: /opt/ontop/input/OntoRaster.toml
ONTOP_CORS_ALLOWED_ORIGINS: "*"
ONTOP_DEV_MODE: "true"
ONTOP_LOG_LEVEL: "debug"
volumes:
- ./vkg:/opt/ontop/input
- ./jdbc:/opt/ontop/jdbc
depends_on:
pgsql:
condition: service_completed_successfully
ports:
- "${ONTOP_SERVER_PORT}:8080"
networks:
- rasdaman-network
extra_hosts:
- "host.docker.internal:host-gateway"
success:
build:
context: diagrams
container_name: success
depends_on:
ontop:
condition: service_healthy
ports:
- "${SUCCESS_PORT}:6060"
networks:
- rasdaman-network
networks:
rasdaman-network:
name: rasdaman-network