1 Star 0 Fork 0

carollia/tools-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
lixiaoxia 提交于 2022-01-14 11:16 . Init
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:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
YAML
1
https://gitee.com/carollia/tools-docker.git
git@gitee.com:carollia/tools-docker.git
carollia
tools-docker
tools-docker
master

搜索帮助