1 Star 0 Fork 0

piao/es-logstash-kibana

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 3.18 KB
一键复制 编辑 原始数据 按行查看 历史
piao 提交于 2019-12-31 14:52 . first commit .
version: '3'
services:
es-master:
image: elasticsearch:7.5.0
container_name: es-master
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
#ELASTIC_PASSWORD: changeme
volumes:
- ./es-master/data:/usr/share/elasticsearch/data:rw
- ./es-master/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./es-master/logs:/user/share/elasticsearch/logs:rw
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.3
expose:
- "9200"
- "9300"
es-node1:
image: elasticsearch:7.5.0
container_name: es-node1
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node1
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.4
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node2,es-node3
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node1:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.4
expose:
- "9200"
- "9300"
es-node2:
image: elasticsearch:7.5.0
container_name: es-node2
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node2
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.5
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node1,es-node3
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node2:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.5
expose:
- "9200"
- "9300"
es-node3:
image: elasticsearch:7.5.0
container_name: es-node3
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node3
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.6
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node1,es-node2
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node3:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.6
expose:
- "9200"
- "9300"
volumes:
es-node1:
driver: local
es-node2:
driver: local
es-node3:
driver: local
networks:
elknet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.10.0/24
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/piao/es-logstash-kibana.git
git@gitee.com:piao/es-logstash-kibana.git
piao
es-logstash-kibana
es-logstash-kibana
master

搜索帮助