代码拉取完成,页面将自动刷新
同步操作将从 大数据老司机/docker-compose-kafka 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3'
services:
kafka-node1:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/kafka:2.12-3.4.0
user: "hadoop:hadoop"
container_name: kafka-node1
hostname: kafka-node1
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/kafka-node1/server.properties:${KAFKA_HOME}/config/server.properties
ports:
- "${KAFKA_NODE1_SERVER_PORT}:9092"
expose:
- 2888
- 3888
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :9092 || exit 1"]
interval: 10s
timeout: 10s
retries: 5
kafka-node2:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/kafka:2.12-3.4.0
user: "hadoop:hadoop"
container_name: kafka-node2
hostname: kafka-node2
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/kafka-node2/server.properties:${KAFKA_HOME}/config/server.properties
ports:
- "${KAFKA_NODE2_SERVER_PORT}:9092"
expose:
- 2888
- 3888
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :9092 || exit 1"]
interval: 10s
timeout: 10s
retries: 5
kafka-node3:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/kafka:2.12-3.4.0
user: "hadoop:hadoop"
container_name: kafka-node3
hostname: kafka-node3
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/kafka-node3/server.properties:${KAFKA_HOME}/config/server.properties
ports:
- "${KAFKA_NODE3_SERVER_PORT}:9092"
expose:
- 2888
- 3888
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :9092 || exit 1"]
interval: 10s
timeout: 10s
retries: 5
# 连接外部网络
networks:
hadoop-network:
external: true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。