forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
145 lines (136 loc) · 3.31 KB
/
docker-compose.dev.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
version: "3.2"
services:
postgres:
image: postgres:10.0
hostname: postgres
ports:
- "127.0.0.1:15432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: aleph
POSTGRES_PASSWORD: aleph
POSTGRES_DATABASE: aleph
elasticsearch:
build:
context: services/elasticsearch
cache_from:
- alephdata/aleph-elasticsearch:latest
image: alephdata/aleph-elasticsearch:${ALEPH_TAG:-latest}
hostname: elasticsearch
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ports:
- "127.0.0.1:19200:9200"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
convert-document:
image: alephdata/convert-document:189c0e1d212b8f3adeaaae5b3c36b064954c76a5
restart: on-failure
tmpfs:
- /tmp
- /root/.config
ingest-file:
build:
context: services/ingest-file
cache_from:
- alephdata/ingest-file:latest
image: alephdata/ingest-file:${ALEPH_TAG:-latest}
hostname: ingest
tmpfs: /tmp
volumes:
- archive-data:/data
- "./services/ingest-file/ingestors:/ingestors/ingestors"
- "./services/ingest-file/tests:/ingestors/tests"
- "./services/ingest-file/requirements.in:/ingestors/requirements.in"
- "./services/ingest-file/requirements.txt:/ingestors/requirements.txt"
- "/:/host"
links:
- postgres
- redis
- convert-document
restart: on-failure
env_file:
- aleph.env
app:
build:
context: .
cache_from:
- alephdata/aleph:latest
image: alephdata/aleph:${ALEPH_TAG:-latest}
hostname: aleph
command: /bin/bash
links:
- postgres
- elasticsearch
- redis
- ingest-file
tmpfs: /tmp
volumes:
- archive-data:/data
- "./aleph:/aleph/aleph"
- "./contrib:/aleph/contrib"
- "./mappings:/aleph/mappings"
- "/:/host"
cap_add:
- SYS_PTRACE
environment:
ALEPH_DEBUG: 'true'
ALEPH_SECRET_KEY: 'development'
env_file:
- aleph.env
api:
build:
context: .
cache_from:
- alephdata/aleph:latest
image: alephdata/aleph:${ALEPH_TAG:-latest}
command: aleph run -h 0.0.0.0 -p 5000 --with-threads
ports:
- "127.0.0.1:5000:5000"
restart: on-failure
links:
- postgres
- elasticsearch
- redis
- ingest-file
tmpfs: /tmp
volumes:
- archive-data:/data
- "./aleph:/aleph/aleph"
environment:
ALEPH_DEBUG: 'true'
ALEPH_SECRET_KEY: 'development'
env_file:
- aleph.env
ui:
build:
context: ui
cache_from:
- alephdata/aleph-ui:latest
image: alephdata/aleph-ui:${ALEPH_TAG:-latest}
links:
- api
command: npm run start
ports:
- "127.0.0.1:8080:3000"
volumes:
- "./ui/src:/alephui/src"
- "./ui/public:/alephui/public"
- "./ui/.tx:/alephui/.tx"
- "./ui/package.json:/alephui/package.json"
environment:
REACT_APP_API_ENDPOINT: '/api/2'
env_file:
- aleph.env
volumes:
archive-data: {}
elasticsearch-data: {}
postgres-data: {}
redis-data: {}