-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-elastic-old.yml
45 lines (42 loc) · 1.1 KB
/
docker-compose-elastic-old.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.3'
services:
elasticsearch:
# Project MeetU ใช้ Version นี้ซึ่งเป้นตัวเก่า
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: elasticsearch1
restart: always
environment:
- node.name=elasticsearch1
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256M -Xmx256M"
- http.cors.enabled=true
- http.cors.allow-origin=*
- network.host=_eth0_
volumes:
- .:/usr/share/elasticsearch/data
networks:
- elastic
# - ingress
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
container_name: kibana
restart: always
environment:
SERVER_NAME: localhost
ELASTICSEARCH_URL: http://elasticsearch1:9200/
ports:
- 5601:5601
volumes:
- .:/your/local/path
networks:
- elastic
# - ingress
networks:
elastic:
#ingress:
volumes: # volume แบบใช้ในตัว dcoker machine ให้จัดการเอง
esdata: