forked from ELTE-DH/NoSketch-Engine-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (53 loc) · 1.76 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
version: "3.4"
services:
sketch_engine:
restart: always
image: "${IMAGE_NAME:-lcc/nosketch-engine:latest}"
container_name: "${CONTAINER_NAME:-noske}"
environment:
SERVER_NAME: "${SERVER_NAME:-https://cql.wortschatz-leipzig.de/}"
SERVER_ALIAS: "${SERVER_ALIAS:-cql.wortschatz-leipzig.de}"
CITATION_LINK: "${CITATION_LINK:-https://wortschatz-leipzig.de/}"
ports:
- "127.0.0.1:${PORT:-10070}:80"
volumes:
# corpus metadata
- type: bind
source: "${REGISTRY_DIR:-/disk/NoSketchEngine/registry}"
target: /corpora/registry
read_only: true
# raw data
- type: bind
source: "${VERT_DIR:-/disk/NoSketchEngine/vert}"
target: /corpora/vert
read_only: true
# compiled corpora
- type: bind
source: "${COMPILED_DIR:-/ssd1/NoSketchEngine/data}"
target: /corpora/data
read_only: true
# bonito folders (cache, userdata, subcorpora definitions)
- type: bind
source: "${CACHE_DIR:-/ssd1/NoSketchEngine/cache}"
target: /var/lib/bonito/cache
- type: bind
source: "${SUBCORP_DIR:-/ssd1/NoSketchEngine/subcorp}"
target: /var/lib/bonito/subcorp
- type: bind
source: "${USERDATA_DIR:-/ssd1/NoSketchEngine/options}"
target: /var/lib/bonito/options
- type: bind
source: "${SECRETS_FILE:-./secrets/htpasswd}"
target: /var/lib/bonito/htpasswd
# do not really live forever
- type: volume
source: registration
target: /var/lib/bonito/registration
- type: volume
source: jobs
target: /var/lib/bonito/jobs
volumes:
registration:
name: "${CONTAINER_NAME:-noske}-registration"
jobs:
name: "${CONTAINER_NAME:-noske}-jobs"