-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (65 loc) · 1.61 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
67
68
69
70
71
72
version: "3.7"
services:
kontext:
image: czcorpus/kontext
# since we are using shared volume with nginx
# in case different version of kontext is used
# we need to copy files into the shared volume first
command: bash -c "cp -r /opt/kontext/public/files/* /opt/kontext/public/share && gunicorn -c ./scripts/install/conf/docker/gunicorn-conf.py public.app:application"
environment:
- STATUS_SERVICE_URL=
volumes:
- ${KONTEXT_CONFIG}:/opt/kontext/conf/config.xml
- files:/opt/kontext/public/share
- corpora-data:/var/lib/manatee
- corpora-cache:/var/local/corpora
networks:
- databases
- kontext
depends_on:
- redis
rq-scheduler:
image: czcorpus/kontext-rqscheduler
command: rqscheduler --host kontext_redis_1 --db 2 -i 10
networks:
- databases
depends_on:
- redis
rq-worker:
image: czcorpus/kontext-rqworker
volumes:
- ${KONTEXT_CONFIG}:/opt/kontext/conf/config.xml
- corpora-data:/var/lib/manatee
- corpora-cache:/var/local/corpora
networks:
- databases
depends_on:
- redis
- kontext
redis:
image: redis:latest
networks:
- databases
ports:
- "16379:6379"
volumes:
- redisdata:/data
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./conf/nginx.conf:/etc/nginx/conf.d/default.conf
- files:/opt/kontext/public/files
networks:
- kontext
depends_on:
- kontext
volumes:
files: {}
corpora-data: {}
corpora-cache: {}
redisdata: {}
networks:
databases: {}
kontext: {}