-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.yml
66 lines (56 loc) · 1.9 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
# Base Docker Compose file for BlackLab.
# (docker-compose.override.yml contains development overrides)
version: '3.9'
services:
server:
image: instituutnederlandsetaal/${DOCKER_IMAGE:-blacklab}:${VERSION:-latest}
build:
context: .
dockerfile: docker/Dockerfile
environment:
# Give JVM enough heap memory
- "JAVA_OPTS=-Xmx10G"
ports:
- "8080:8080"
volumes:
- blacklab-data:/data
# Default values have no effect, but user can override CORPUS_DIR/_NAME to bind mount a corpus
- ${CORPUS_DIR:-./README.md}:/data/index/${CORPUS_NAME:-README.md}
# Creates new index
indexer:
image: instituutnederlandsetaal/${DOCKER_IMAGE:-blacklab}:${VERSION:-latest}
profiles: [ "tools" ]
build:
context: .
dockerfile: docker/Dockerfile
command: >-
/bin/bash -c
"cd /usr/local/lib/blacklab-tools &&
java -cp '*' nl.inl.blacklab.tools.IndexTool create /data/index/${INDEX_NAME:-indexname} /input ${INDEX_FORMAT:-indexformat}"
volumes:
- "${BLACKLAB_FORMATS_DIR:-./formats}:/etc/blacklab/formats"
- "${INDEX_INPUT_DIR:-./input}:/input"
- blacklab-data:/data
# BlackLab as a Solr component
solr:
profiles: [ "tools" ]
image: instituutnederlandsetaal/blacklab-solr:${VERSION:-latest}
build:
context: .
dockerfile: solr/Dockerfile
# Reverse proxy to Solr or BLS
proxy:
profiles: [ "tools" ]
image: instituutnederlandsetaal/blacklab-proxy:${VERSION:-latest}
build:
context: .
dockerfile: proxy/Dockerfile
volumes:
# Configuration file (pointing to solr and specifying a default corpus name)
- ./solr/proxy.yaml:/etc/blacklab/proxy.yaml
ports:
# Use port 8080 so it's the same exact URL as BLS would be (for running the same tests)
- "8080:8080"
# Volume where our indexes will be stored.
volumes:
blacklab-data: {}