代码拉取完成,页面将自动刷新
同步操作将从 人间喜乐/webook 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3"
# 我这个 docker compose 由几个服务组成
services:
mysql8:
image: mysql:8.0.29
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
# - 初始化脚本
- ./script/mysql/:/docker-entrypoint-initdb.d/
ports:
# - 外部访问用 13316
- 13316:3306
redis:
image: "bitnami/redis:latest"
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
etcd:
image: 'bitnami/etcd:3.5'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
ports:
# 所以你要用 12379 端口来连接 etcd
- 12379:2379
mongo:
image: mongo:6.0
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
mongo-express:
image: mongo-express:0.54
restart: always
ports:
# - 访问 18081
- 18081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
# 这个url就是根据 mongo 里面的配置搞出来的
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
kafka:
image: 'bitnami/kafka:3.6.0'
ports:
- '9092:9092'
- '9094:9094'
environment:
- KAFKA_CFG_NODE_ID=0
# - 允许自动创建 topic,线上不要开启
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://:9093,EXTERNAL://0.0.0.0:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
prometheus:
image: prom/prometheus:v2.47.2
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
zipkin:
# 用的是不支持 Kafka 之类的简化版本
image: openzipkin/zipkin-slim:2.24
ports:
- '9411:9411'
grafana:
image: grafana/grafana-enterprise:10.2.0
ports:
- 3000:3000
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms84m -Xmx512m"
ports:
- "9200:9200"
# nacos-standalone:
# image: nacos/nacos-server:latest
# container_name: nacos-standalone
# ports:
# - "8848:8848"
# env_file:
# - ./nacos-standalone.env
# volumes:
# - ./logs/standalone:/home/nacos/logs
# - ./init.d/custom.properties:/home/nacos/init.d/custom.properties
# restart: always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。