-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
64 lines (58 loc) · 1.3 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
version: '3'
services:
postgres:
image: postgres:9.6
volumes:
- pgdata:/var/lib/postgresql/data
couchdb:
build: ./dragnet/couchdb
volumes:
- couchdata:/opt/couchdb/data
ports:
- 5984:5984
env_file: ./dragnet/couchdb/.local_env
elasticsearch:
build: ./elasticsearch
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
environment:
- network.host=0.0.0.0
- transport.host=localhost
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
web:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
env_file: .local_env
volumes:
- ./declarations_site:/usr/local/declarations_site
- ./declarations_bank:/mnt/declarations_bank
ports:
- 8000:8000
depends_on:
- postgres
- elasticsearch
- couchdb
dragnet_utils:
build: ./dragnet/utils
volumes:
- ./dragnet/utils:/usr/local/dragnet
- ./dragnet/data:/mnt/dragnet_data
- ./dragnet/views:/usr/local/dragnet/views
- ./declarations_bank:/mnt/declarations_bank
depends_on:
- couchdb
- elasticsearch
volumes:
pgdata:
esdata:
couchdata: