forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-search.yml
44 lines (39 loc) · 985 Bytes
/
docker-compose-search.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
# docker-compose-search.yml starts "search" service and override some
# services to link them so they can use the "search" as well.
version: '3'
volumes:
search_data:
services:
web:
links:
- storage
- database
- cache
- search
celery:
links:
- storage
- database
- cache
- search
depends_on:
- storage
- azure-cli
- search
environment:
- DJANGO_SETTINGS_MODULE=readthedocs.settings.celery
- SEARCH=t
# You may need to increase the memory for vm
# sudo sysctl -w vm.max_map_count=262144
search:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
environment:
- discovery.type=single-node
- node.name=search
- cluster.routing.allocation.disk.threshold_enabled=false
- cluster.info.update.interval=30m
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- search_data:/usr/share/elasticsearch/data
networks:
community: