代码拉取完成,页面将自动刷新
version: "3"
services:
zookeeper:
image: wurstmeister/zookeeper
networks:
- "elk-net"
ports:
- "2181:2181"
kafka:
#image: wurstmeister/kafka:2.11-0.11.0.3
image: wurstmeister/kafka:2.11-2.0.1
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- "elk-net"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kibaba:
restart: always
image: mykibaba:dev
container_name: es7
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
disable: true
ports:
- "9200:9200"
- "5601:5601"
networks:
- "elk-net"
logstash:
restart: always
image: mylogstash:dev
container_name: logstash
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
ports:
- "9600:9600"
- "5044:5044"
healthcheck:
disable: true
depends_on:
- "kafka"
networks:
- "elk-net"
filebeat:
restart: always
image: myfilebeat:dev
container_name: filebeat
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
extra_hosts:
# 添加域名映射,相当于在容器里的/etc/host增加域名解析效果一样
- "ambari-server:172.12.15.22"
- "ambari-node-1:172.12.15.22"
- "ambari-node-2:172.12.15.22"
- "ambari-node-3:172.12.15.22"
- "ambari-node-4:172.12.15.22"
healthcheck:
disable: true
networks:
- "elk-net"
depends_on:
- "kafka"
volumes:
- /Users/xiebaoyuan/Downloads/elk/filebeat/testlog:/var/lib/docker/containers
# - /var/lib/docker/containers:/var/lib/docker/containers
# - /var/run/docker.sock:/var/run/docker.sock
networks:
elk-net:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。