编辑 docker-compose.yml
#注意mysql数据库版本最好是5.6-5.7的,我用mysql8.0连接不成功version: '2'services:# The zipkin process services the UI, and also exposes a POST endpoint that# instrumentation can send trace data to. Scribe is disabled by default.zipkin:image: 10.10.0.110/box/zipkin:latestcontainer_name: zipkinenvironment:- STORAGE_TYPE=mysql# Point the zipkin at the storage backend- MYSQL_DB=mws_zipkin- MYSQL_USER=root- MYSQL_PASS=benwunetJ!@#- MYSQL_HOST=49.4.6.180- MYSQL_TCP_PORT=3306# 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.zipkin=DEBUG -Dlogging.level.zipkin2=DEBUGnetwork_mode: hostports:# Port used for the Zipkin UI and HTTP Api- 9411:9411# Uncomment if you set SCRIBE_ENABLED=true# - 9410:9410#networks:# - default# - my_net #创建网路 docker network create my_net 删除网络 docker network rm my_net#networks:#my_net:#external: true
