forked from zazukoians/qlever-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
142 lines (134 loc) · 3.17 KB
/
docker-compose.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
services:
#####################
# Olymipics dataset #
#####################
server-olympics:
profiles:
- olympics
image: ghcr.io/zazukoians/qlever-server:latest
build:
context: ./docker/
dockerfile: ./server.Dockerfile
user: "65534:0"
stop_grace_period: 0s
ports:
- "7001:7001"
env_file:
- olympics.env
volumes:
- ./volumes/olympics/server:/data
init-olympics:
profiles:
- olympics
image: docker.io/library/busybox
command:
["sh", "-c", "chown -R 65534:0 /data/server && chown -R 65534:0 /data/ui"]
stop_grace_period: 0s
restart: "no"
volumes:
- ./volumes/olympics/server:/data/server
- ./volumes/olympics/ui:/data/ui
ui-olympics:
profiles:
- olympics
image: ghcr.io/zazukoians/qlever-ui:latest
build:
context: ./docker/
dockerfile: ./ui.Dockerfile
user: "65534:0"
stop_grace_period: 0s
ports:
- "7002:7002"
depends_on:
- server-olympics
env_file:
- olympics.env
volumes:
- ./volumes/olympics/ui:/app/db
###################
# Local data file #
###################
server-local:
profiles:
- local
image: ghcr.io/zazukoians/qlever-server:latest
build:
context: ./docker/
dockerfile: ./server.Dockerfile
user: "65534:0"
stop_grace_period: 0s
ports:
- "7001:7001"
environment:
- FORCE_INDEXING=true
env_file:
- local.env
volumes:
- ./volumes/local/server:/data
- ./docker/server/data.nt:/data/data.nt:ro
init-local:
profiles:
- local
image: docker.io/library/busybox
command:
["sh", "-c", "chown -R 65534:0 /data/server && chown -R 65534:0 /data/ui"]
stop_grace_period: 0s
restart: "no"
volumes:
- ./volumes/local/server:/data/server
- ./volumes/local/ui:/data/ui
ui-local:
profiles:
- local
image: ghcr.io/zazukoians/qlever-ui:latest
build:
context: ./docker/
dockerfile: ./ui.Dockerfile
user: "65534:0"
stop_grace_period: 0s
ports:
- "7002:7002"
depends_on:
- server-local
env_file:
- local.env
volumes:
- ./volumes/local/ui:/app/db
######################
# Petrimaps instance #
######################
petrimaps-redirect-local:
profiles:
- local
build:
context: ./redirect/
dockerfile: ./Dockerfile
stop_grace_period: 0s
environment:
- PUBLIC_MAPS_URL=http://localhost:7004
- PUBLIC_BACKEND_URL=http://localhost:7001
- PRIVATE_BACKEND_URL=http://server-local:7001
ports:
- "7003:7003"
petrimaps-redirect-olympics:
profiles:
- olympics
build:
context: ./redirect/
dockerfile: ./Dockerfile
stop_grace_period: 0s
environment:
- PUBLIC_MAPS_URL=http://localhost:7004
- PUBLIC_BACKEND_URL=http://localhost:7001
- PRIVATE_BACKEND_URL=http://server-olympics:7001
ports:
- "7003:7003"
qlever-petrimaps:
profiles:
- local
- olympics
image: docker.io/adfreiburg/qlever-petrimaps:latest
stop_grace_period: 0s
restart: unless-stopped
ports:
- "7004:9090"