-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
76 lines (70 loc) · 1.42 KB
/
docker-compose.yaml
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
version: '2'
services:
mongodb:
image: mongo:3.2.11
volumes:
- <path to local mongodb data directory>:/data/db
restart: always
networks:
esnet:
aliases:
- mongodb
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.0
ports:
- 9200:9200
- 9300:9300
volumes:
- <path to local elasticsearch data directory>:/usr/share/elasticsearch/data
restart: always
environment:
http.host: 0.0.0.0
transport.host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
cluster.name: elasticsearch
script.max_compilations_per_minute: 200
xpack.security.enabled: 'false'
xpack.monitoring.enabled: 'false'
ES_JAVA_OPTS: -Xms1024m -Xmx1024m
networks:
esnet:
aliases:
- elasticsearch
documentsapi:
build:
context: documents-api
volumes:
- ./documents-api:/api
command: python3 api.py
ports:
- 5000:5000
restart: always
networks:
esnet:
aliases:
- documentsapi
api:
build:
context: api
ports:
- 8888:8888
restart: always
networks:
esnet:
aliases:
- api
ui:
build:
context: ui
ports:
- 80:80
volumes:
- ./ui/html:/var/www/site
restart: always
networks:
esnet:
aliases:
- ui
networks:
esnet:
driver: bridge