mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-01 19:38:30 +08:00
提交zipkin更多说明
This commit is contained in:
parent
7284c34ef1
commit
1373972b78
13
zipkin/README.md
Normal file
13
zipkin/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Zipkin
|
||||
|
||||
## 概述
|
||||
|
||||
* [core](./core): 官方镜像 https://hub.docker.com/r/openzipkin/zipkin , 仅作为国内构建加速使用。
|
||||
* [dependencies](./dependencies) 官网镜像 https://hub.docker.com/r/openzipkin/zipkin-dependencies, 仅作为国内构建加速使用。
|
||||
* [storage/mysql](./storage/mysql),自建构建镜像,原来官方镜像不支持持久化数据,不太好用,所以只好自己写了。see the [schema DDL](https://github.com/openzipkin/zipkin/blob/master/zipkin-storage/mysql-v1/src/main/resources/mysql.sql)
|
||||
|
||||
## 参见
|
||||
|
||||
* [openzipkin/zipkin](https://github.com/openzipkin/zipkin/tree/master/docker)
|
||||
* [docker-zipkin/docker-compose.yml](https://github.com/openzipkin-attic/docker-zipkin/blob/master/docker-compose.yml)
|
||||
|
67
zipkin/docker-compose.yml
Normal file
67
zipkin/docker-compose.yml
Normal file
@ -0,0 +1,67 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
zipkin-mysql:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kennylee/zipkin-mysql
|
||||
container_name: zipkin-mysql
|
||||
# Uncomment to expose the storage port for testing
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=111111
|
||||
- MYSQL_DATABASE=zipkin
|
||||
- MYSQL_USER=zipkin
|
||||
- MYSQL_PASSWORD=zipkin
|
||||
volumes:
|
||||
- ./data/mysqldata:/var/lib/mysql/:z
|
||||
- ./data/logs:/var/log/mysql/:z
|
||||
restart: on-failure
|
||||
logging: &logging
|
||||
driver: 'json-file'
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
zipkin:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kennylee/zipkin
|
||||
container_name: zipkin
|
||||
ports:
|
||||
# Port used for the Zipkin UI and HTTP Api
|
||||
- 9411:9411
|
||||
# Uncomment if you set SCRIBE_ENABLED=true
|
||||
# - 9410:9410
|
||||
environment:
|
||||
- STORAGE_TYPE=mysql
|
||||
# Point the zipkin at the storage backend
|
||||
- MYSQL_HOST=zipkin-mysql
|
||||
- MYSQL_USER=zipkin
|
||||
- MYSQL_PASS=zipkin
|
||||
# Uncomment to enable scribe
|
||||
# - SCRIBE_ENABLED=true
|
||||
# Uncomment to enable self-tracing
|
||||
# - SELF_TRACING_ENABLED=true
|
||||
# Uncomment to enable debug logging
|
||||
# - JAVA_OPTS=-Dlogging.level.zipkin2=DEBUG
|
||||
restart: on-failure
|
||||
logging:
|
||||
<<: *logging
|
||||
depends_on:
|
||||
- zipkin-mysql
|
||||
zipkin-dependencies:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kennylee/zipkin-dependencies
|
||||
container_name: zipkin-dependencies
|
||||
entrypoint: crond -f
|
||||
environment:
|
||||
- STORAGE_TYPE=mysql
|
||||
- MYSQL_HOST=zipkin-mysql
|
||||
# Add the baked-in username and password for the zipkin-mysql image
|
||||
- MYSQL_USER=zipkin
|
||||
- MYSQL_PASS=zipkin
|
||||
# Uncomment to see dependency processing logs
|
||||
# - ZIPKIN_LOG_LEVEL=DEBUG
|
||||
# Uncomment to adjust memory used by the dependencies job
|
||||
# - JAVA_OPTS=-verbose:gc -Xms1G -Xmx1G
|
||||
restart: on-failure
|
||||
logging:
|
||||
<<: *logging
|
||||
depends_on:
|
||||
- zipkin-mysql
|
Loading…
Reference in New Issue
Block a user