-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-es.yml
42 lines (38 loc) · 1.1 KB
/
docker-compose-es.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
version: '3.9'
services:
elasticsearch:
image: elasticsearch:${ELASTIC_VERSION}
platform: linux/amd64
volumes:
- ./configs/elasticsearch/config.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./docker_volumes/elasticsearch/data:/var/lib/elasticsearch/data
- ./configs/locale/ru_RU:/usr/share/elasticsearch/config/hunspell/ru_RU/
- ./configs/locale/en_US:/usr/share/elasticsearch/config/hunspell/en_US/
environment:
ES_JAVA_OPTS: '-Xmx4g -Xms4g'
ELASTIC_USERNAME: ${ELASTIC_USERNAME}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
discovery.type: single-node
networks:
- elk
ports:
- ${ELASTIC_PORTS_1}:${ELASTIC_PORTS_1}
- ${ELASTIC_PORTS_2}:${ELASTIC_PORTS_2}
env_file:
- .env
kibana:
image: kibana:${ELASTIC_VERSION}
platform: linux/amd64
depends_on:
- elasticsearch
volumes:
- ./configs/kibana/config.yml:/usr/share/kibana/config/kibana.yml:ro
networks:
- elk
ports:
- ${KIBANA_PORTS}:${KIBANA_PORTS}
env_file:
- .env
networks:
elk:
driver: bridge