-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.83 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
65
66
67
68
version: '3'
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.1
container_name: bmeg-app-elastic
environment:
- cluster.name=bmeg-app-cluster
- node.name=bmeg-app-elastic
- discovery.type=single-node
# - cluster.initial_master_nodes=elastic,odfe-node2
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- bmeg-app-data1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- bmeg-app-net
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.9.1
container_name: bmeg-app-kibana
ports:
- 5601:5601
expose:
- "5601"
environment:
ELASTICSEARCH_URL: http://bmeg-app-elastic:9200
ELASTICSEARCH_HOSTS: http://bmeg-app-elastic:9200
networks:
- bmeg-app-net
depends_on:
- elastic
app:
build: ./
container_name: bmeg-app
# for development: map host directory to container's /app directory
volumes:
- ./bmeg_app:/app/bmeg_app
ports:
- 8050:8050
expose:
- "8050"
environment:
ELASTICSEARCH_URL: http://bmeg-app-elastic:9200
ELASTICSEARCH_HOSTS: http://bmeg-app-elastic:9200
networks:
- bmeg-app-net
depends_on:
- elastic
command: ["./bin/wait-for-it.sh", "bmeg-app-elastic:9200", "--", "./bin/setup-and-launch.sh"]
volumes:
bmeg-app-data1:
bmeg-app-data2:
networks:
bmeg-app-net: