代码拉取完成,页面将自动刷新
version: "3.5"
services:
ymall-redis:
image: redis
ports:
- 6379:6379
restart: always
container_name: ymall-redis
hostname: ymall-redis
ymall-zookeeper:
image: confluentinc/cp-zookeeper:5.1.0
container_name: ymall-zookeeper
restart: unless-stopped
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
TZ: "${TZ-Europe/Berlin}"
healthcheck:
test: "echo stat | nc localhost $$ZOOKEEPER_CLIENT_PORT"
start_period: 30s
ymall-kafka:
image: confluentinc/cp-kafka:5.1.0
container_name: ymall-kafka
restart: unless-stopped
depends_on:
- ymall-zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: ymall-zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://ymall-kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_DELETE_TOPIC_ENABLE: "true"
TZ: "${TZ-Europe/Berlin}"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9092" ]
start_period: 30s
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。