1 Star 0 Fork 0

水告木南/GinTalk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.8'
services:
mysql:
image: mysql:latest
container_name: mysql_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: GinTalk
MYSQL_USER: docker
MYSQL_PASSWORD: 123456
command: --innodb-buffer-pool-size=2G
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
redis:
image: redis:latest
container_name: redis_cache
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
kafka:
image: bitnami/kafka:latest
container_name: kafka_broker
environment:
KAFKA_CFG_PROCESS_ROLES: "broker,controller"
KAFKA_CFG_NODE_ID: "1"
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "1@localhost:9093"
KAFKA_CFG_LISTENERS: "PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093"
KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://localhost:9092"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: "1"
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: "1"
ALLOW_PLAINTEXT_LISTENER: "yes"
ports:
- "9092:9092"
- "9093:9093"
volumes:
- kafka_data:/bitnami/kafka
volumes:
mysql_data:
redis_data:
kafka_data:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Aspirin-Byte/GinTalk.git
[email protected]:Aspirin-Byte/GinTalk.git
Aspirin-Byte
GinTalk
GinTalk
main

搜索帮助