-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
45 lines (41 loc) · 1.06 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
version: '3'
services:
elasticsearch:
container_name: graphene_elastic_run_elasticsearch
build:
context: .
dockerfile: ./docker/elasticsearch/Dockerfile
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
environment:
# - bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.routing.allocation.disk.watermark.low=97%
- cluster.routing.allocation.disk.watermark.high=98%
- cluster.routing.allocation.disk.watermark.flood_stage=99%
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
backend:
stdin_open: true
tty: true
container_name: graphene_elastic_run_backend
build:
context: .
dockerfile: ./docker/backend/Dockerfile
volumes:
- .:/code
entrypoint:
- /code/docker/backend/run.sh
depends_on:
- elasticsearch
links:
- elasticsearch:elasticsearch
ports:
- 8000:8000
environment:
- 'ELASTICSEARCH_CONNECTION={"hosts": ["elasticsearch"], "timeout": 5}'
volumes:
esdata: