1 Star 0 Fork 413

qyk/极客时间-Go实战训练营

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yaml 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
Ming Deng 提交于 2022-10-04 17:28 . 用户服务 v1
# 注意这会启动我们这个训练营里面用到的所有的第三方依赖,所以会很慢
# 而且会非常消耗性能。
# 如果你的电脑性能比较差,那么启动的时候可能会引起卡顿,或者风扇疯狂咆哮
# 所以你可以考虑说将部分代码复制出去另外一个 docker-compose 文件
services:
redis:
image: docker.io/bitnami/redis:7.0
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
# volumes:
# - 'redis_data:/bitnami/redis/data'
# MySQL8
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:
- "13306:3306"
# Jaeger
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
# Zipkin
zipkin-all-in-one:
image: openzipkin/zipkin:latest
ports:
- "19411:9411"
# prometheus:
# container_name: prometheus
# image: prom/prometheus:latest
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# ports:
# - "9090:9090"
otel-collector:
image: otel/opentelemetry-collector:0.55.0
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof 扩展端口
- "8888:8888" # otel 暴露的 Prometheus 端口
- "8889:8889" # Prometheus exporter 端口
- "13133:13133" # 健康检查扩展
- "4317:4317" # OTLP gRPC 接收器端口
- "4318:4318" # OTLP http 接收器端口
- "55679:55679" # zpages 扩展端口
depends_on:
- jaeger-all-in-one
- zipkin-all-in-one
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/qyk19952021/geektime-go.git
git@gitee.com:qyk19952021/geektime-go.git
qyk19952021
geektime-go
极客时间-Go实战训练营
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385