当前位置: 首页 > 工具软件 > docker.el > 使用案例 >

elk docker-compose

姜磊
2023-12-01
version: '3.1'

services:
 elasticsearch:
  image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
  container_name: elasticsearch
  ports:
   - "9200:9200"
  volumes:
   - elasticsearch-data:/usr/share/elasticsearch/data
  networks:
   - docker-network
 kibana:
  image: docker.elastic.co/kibana/kibana:6.2.4
  container_name: kibana
  ports:
   - "5601:5601"
  depends_on:
   - elasticsearch
  networks:
   - docker-network
networks:
 docker-network:
  driver: bridge
volumes:
 elasticsearch-data:

 

转载于:https://www.cnblogs.com/chenyishi/p/10978271.html

 类似资料: