docker-compose.yml
version: "2"
services:
kibana:
image: kibana:7.3.1
restart: always
hostname: kibana
container_name: kibana
environment:
TZ: Asia/Shanghai
volumes:
- /data/ELK/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601
elasticsearch-master:
image: elasticsearch:7.3.1
restart: always
hostname: es-master
container_name: es-master
environment:
TZ: Asia/Shanghai
volumes:
- /data/ELK/elasticsearch/master:/usr/share/elasticsearch/data
- /data/ELK/elasticsearch/config/es-master.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- /data/ELK/elasticsearch/config/elastic-cert.p12:/usr/share/elasticsearch/config/elastic-cert.p12
- /data/ELK/elasticsearch/x-pack-core-7.3.1.jar://usr/share/elasticsearch/modules/x-pack-core/x-pack-core-7.3.1.jar
ports:
- 9200:9200
elasticsearch-node-01:
image: elasticsearch:7.3.1
restart: always
hostname: es-node-01
container_name: es-node-01
environment:
TZ: Asia/Shanghai
volumes:
- /data/ELK/elasticsearch/node-01:/usr/share/elasticsearch/data
- /data/ELK/elasticsearch/config/es-node-01.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- /data/ELK/elasticsearch/config/elastic-cert.p12:/usr/share/elasticsearch/config/elastic-cert.p12
- /data/ELK/elasticsearch/x-pack-core-7.3.1.jar://usr/share/elasticsearch/modules/x-pack-core/x-pack-core-7.3.1.jar
ports:
- 9210:9200
networks:
default:
external:
name: bole-network
版权声明:
作者:Akiraka
链接:https://www.akiraka.net/linux/41.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
海报
docker-compose.yml
version: "2"
services:
kibana:
image: kibana:7.3.1
restart: always
hostname: kibana
container_name: kibana
environme……
文章目录
关闭