forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
121 lines (113 loc) · 2.86 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
version: "2"
services:
postgres:
image: postgres:10.0
volumes:
- "./build/data/postgres:/var/lib/postgresql/data"
- "./build/logs/postgres:/var/log"
environment:
POSTGRES_USER: aleph
POSTGRES_PASSWORD: aleph
POSTGRES_DATABASE: aleph
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.0.0
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
- elasticsearch-log:/var/log
rabbitmq:
image: rabbitmq
volumes:
- rabbitmq-data:/var/lib/rabbitmq
unoservice:
image: alephdata/unoservice
restart: on-failure
tmpfs:
- /tmp
- /root/.config
mem_limit: 1g
expose:
- 3000
app:
build: .
command: /bin/bash
links:
- postgres
- elasticsearch
- rabbitmq
- unoservice
# tmpfs: /tmp
volumes:
- "./:/aleph"
- "./mappings:/aleph/mappings"
- "./build/archive:/data"
- "./build/polyglot:/polyglot"
- "/:/host"
environment:
ALEPH_DEBUG: 'true'
ALEPH_SECRET_KEY: 'development'
ALEPH_CACHE: 'false'
ALEPH_OAUTH: 'false'
ALEPH_EAGER: 'true'
ALEPH_ARCHIVE_TYPE: 'file'
ALEPH_ARCHIVE_PATH: '/data'
POLYGLOT_DATA_PATH: /polyglot
ALEPH_ELASTICSEARCH_URI: http://elasticsearch:9200/
ALEPH_DATABASE_URI: postgresql://aleph:aleph@postgres/aleph
ALEPH_BROKER_URI: amqp://guest:guest@rabbitmq:5672
UNOSERVICE_URL: http://unoservice:3000/convert
C_FORCE_ROOT: 'true'
env_file:
- aleph.env
api:
build: .
command: python aleph/manage.py runserver -h 0.0.0.0 -p 5000
expose:
- 5000
ports:
- "5000:5000"
restart: on-failure
links:
- postgres
- elasticsearch
- rabbitmq
- unoservice
volumes:
- "./aleph:/aleph/aleph"
- "./build/archive:/data"
- "./build/polyglot:/polyglot"
- "/:/host"
environment:
ALEPH_DEBUG: 'true'
ALEPH_SECRET_KEY: 'development'
ALEPH_CACHE: 'false'
ALEPH_EAGER: 'true'
ALEPH_ARCHIVE_TYPE: 'file'
ALEPH_ARCHIVE_PATH: '/data'
POLYGLOT_DATA_PATH: /polyglot
ALEPH_ELASTICSEARCH_URI: http://elasticsearch:9200/
ALEPH_DATABASE_URI: postgresql://aleph:aleph@postgres/aleph
ALEPH_BROKER_URI: amqp://guest:guest@rabbitmq:5672
UNOSERVICE_URL: http://unoservice:3000/convert
C_FORCE_ROOT: 'true'
env_file:
- aleph.env
ui:
build: ui
links:
- api
command: npm run start
ports:
- "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:
elasticsearch-data: {}
elasticsearch-log: {}
rabbitmq-data: {}