-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdc-db-blazegraph.yml
45 lines (42 loc) · 1.7 KB
/
dc-db-blazegraph.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
version: '2.3'
services:
blazegraph:
image: sophox/wikidata-query-rdf
mem_limit: "${MEM_BLAZE_LIMIT_MB}m"
memswap_limit: "${MEM_BLAZE_LIMIT_MB}m"
mem_swappiness: 0
volumes:
- "${BLAZEGRAPH_DATA_DIR}:/app-data:rw" # Used by com.bigdata.journal.AbstractJournal.file in RWStore.properties
- "${OSM_TTLS_DIR}:/osm-rdf-ttls:rw" # In-container path must specified by bg-updater's OSM_RDF_TTLS
- "${BLAZEGRAPH_DATA_DIR}/logs:/var/log/wdqs:rw" # WDQS puts GC logs here
command: "./runBlazegraph.sh"
environment:
HEAP_SIZE: "${MEM_BLAZE_HEAP_MB}m"
HOST: "0.0.0.0"
USER_AGENT: "Sophox - OSM Query Service; https://sophox.org/"
BLAZEGRAPH_OPTS: >-
-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
-DwikibaseConceptUri=${WB_CONCEPT_URI}
-DwikibaseServiceEnableWhitelist=false
# For remote debugging, uncomment next line and the port below
# -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y
ports:
- "9999"
# - "8000:8000"
networks:
- proxy_net
- blazegraph_net
logging:
driver: json-file
options: {max-file: "3", max-size: "10m"}
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy_net"
- "traefik.port=9999"
- "traefik.frontend.rule=Host:${SOPHOX_HOST};Method:GET,POST;PathPrefix:/sparql;ReplacePathRegex:^/sparql(.*) /bigdata/namespace/wdq/sparql$$1"
- "traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:*||access-control-allow-methods:OPTIONS,GET,POST"
- "traefik.frontend.headers.customRequestHeaders=X-BIGDATA-READ-ONLY:yes"
networks:
proxy_net:
external: true
blazegraph_net: