-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.97 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
services:
query:
build: .
image: nanopub/query
restart: unless-stopped
ports:
- 9300:9300
- 9393:9393
volumes:
- ./load:/app/load
environment:
- ENDPOINT_TYPE=rdf4j
- ENDPOINT_BASE=http://rdf4j:8080/rdf4j-server/repositories/
# - INIT_WAIT_SECONDS=120
# - NANOPUB_QUERY_URL=https://query.knowledgepixels.com/
logging:
options:
max-size: "10m"
max-file: "3"
autofetch:
image: alpine
volumes:
- ./load:/app/load
- ./scripts:/app/scripts
command: /app/scripts/autofetch.sh
rdf4j:
image: eclipse/rdf4j-workbench:5.0.3
# image: eclipse/rdf4j-workbench:5.0.2
# image: nanopub/rdf4j-workbench:5.0.3-SNAPSHOT
restart: unless-stopped
environment:
- JAVA_OPTS=-Xmx16g -Xms1g -Xss100m -Dorg.eclipse.rdf4j.client.http.connectionTimeout=10000 -Dorg.eclipse.rdf4j.client.http.connectionRequestTimeout=10000 -Dorg.eclipse.rdf4j.client.http.socketTimeout=10000
volumes:
- ./data/rdf4j/data:/var/rdf4j
- ./data/rdf4j/logs:/usr/local/tomcat/logs
- ./data/info:/var/info
- ./entrypoint:/var/entrypoint
ports:
- 8081:8080
entrypoint: /var/entrypoint/init.sh
healthcheck:
test: >
curl -f --retry 2 --max-time 10 --retry-delay 2 --retry-max-time 10 --retry-connrefused \
"http://localhost:8080/rdf4j-server/repositories/full?query=select%2Awhere%7B%3Fs%3Cx%3A%3E%3Fo%7Dlimit1" \
|| (
date >> /var/info/restart
pkill -15 java
sleep 10
pkill -9 java
)
interval: 10s
timeout: 10s
start_period: 60s
grlc:
image: clariah/grlc:v1.3.9 # causes error locally ("failed to register layer: failed to Lchown ..."), but seems to work on the servers
# image: clariah/grlc:v1.3.8 # works locally but leads to problems on the servers
restart: unless-stopped
# ports:
# - 8088:80
logging:
options:
max-size: "10m"
max-file: "3"