加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
wangzhong 提交于 2019-08-16 11:55 . 微信支付对象采用Context
version: '3'
services:
db1:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=gpmall
volumes:
- "/Users/wangzhong/datas/mysql:/var/lib/mysql"
elasticsearch:
image: elasticsearch:6.6.1
environment:
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
volumes:
- "/Users/wangzhong/datas/es/data:/usr/share/elasticsearch/data"
#- "/Users/wangzhong/datas/es/plugins:/usr/share/elasticsearch/plugins"
kibana:
image: kibana:6.6.1
environment:
SERVER_NAME:
ELASTICSEARCH_HOSTS: http://localhost:9200
ports:
- 5601:5601
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_PORT: 9092
# HOSTNAME_COMMAND: "cat /etc/hosts | tail -1 | awk '{print $$1}'"
# KAFKA_ADVERTISED_LISTENERS: INSIDE://:9092,OUTSIDE://_{HOSTNAME_COMMAND}:9094
# KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
# KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
redis:
image: redis
ports:
- "6379:6379"
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化