forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (134 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "2"
services:
postgres:
image: postgres:10.0
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: aleph
POSTGRES_PASSWORD: aleph
POSTGRES_DATABASE: aleph
elasticsearch:
image: alephdata/aleph-elasticsearch:6
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
rabbitmq:
image: rabbitmq
hostname: queue
volumes:
- rabbitmq-data:/var/lib/rabbitmq
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
convert-document:
image: alephdata/aleph-convert-document
restart: on-failure
tmpfs:
- /tmp
- /root/.config
mem_limit: 2g
expose:
- 3000
recognize-text:
image: alephdata/aleph-recognize-text
restart: on-failure
mem_limit: 2g
expose:
- 50000
extract-entities:
image: alephdata/aleph-extract-entities
restart: on-failure
mem_limit: 4g
expose:
- 50000
worker:
image: alephdata/aleph
command: celery -A aleph.queues -B -c 4 -l INFO worker
restart: on-failure
links:
- postgres
- elasticsearch
- rabbitmq
- redis
- convert-document
- recognize-text
- extract-entities
tmpfs:
- /tmp
volumes:
- archive-data:/data
- "/:/host"
env_file:
- aleph.env
shell:
image: alephdata/aleph
command: /bin/bash
links:
- postgres
- elasticsearch
- rabbitmq
- redis
- convert-document
- recognize-text
- extract-entities
- worker
tmpfs:
- /tmp
volumes:
- archive-data:/data
- "./mappings:/aleph/mappings"
- "/:/host"
env_file:
- aleph.env
beat:
image: alephdata/aleph
command: celery -A aleph.queues beat -s /var/lib/celerybeat-schedule.db
links:
- postgres
- elasticsearch
- rabbitmq
- redis
- worker
- convert-document
- recognize-text
- extract-entities
tmpfs:
- /tmp
volumes:
- archive-data:/data
env_file:
- aleph.env
api:
image: alephdata/aleph
command: gunicorn -w 8 -b 0.0.0.0:8000 --log-level info --log-file /var/log/gunicorn.log aleph.manage:app
expose:
- 8000
links:
- postgres
- elasticsearch
- rabbitmq
- redis
- worker
- convert-document
- recognize-text
- extract-entities
tmpfs:
- /tmp
volumes:
- archive-data:/data
env_file:
- aleph.env
ui:
image: alephdata/aleph-ui-production
links:
- api
ports:
- "8080:8080"
volumes:
archive-data: {}
postgres-data: {}
rabbitmq-data: {}
redis-data: {}
elasticsearch-data: {}