下载镜像
sh
docker pull openzipkin/zipkin:3.3
未持久化
sh
docker run --name zipkin-server -d --restart=always -p 19411:9411 openzipkin/zipkin:3.3
http://127.0.0.1:19411/zipkin/
持久化到MySQL
sh
docker run \
--name zipkin-server-mysql -d \
--restart=always \
-p 19412:9411 \
-e MYSQL_USER=root \
-e MYSQL_PASS=lhzlx \
-e MYSQL_HOST=127.0.0.1 \
-e STORAGE_TYPE=mysql \
-e MYSQL_DB=zipkin \
-e MYSQL_TCP_PORT=3316 \
openzipkin/zipkin:3.3
持久化到es
sh
docker run \
--name zipkin-server-es -d \
-p 19413:9411 \
--restart=always \
-e STORAGE_TYPE=elasticsearch \
-e ES_HOSTS=127.0.0.1:9200
openzipkin/zipkin:3.3