Docker下载地址 [ https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe ]
一、创建/启动 redis 容器
CMD: docker run --name redis -p 6379:6379 -v d:/docker/redis/redis.conf:/etc/redis/redis.conf -v d:/docker/redis/data:/data -d redis:latest redis-server --appendonly yes Desc: docker run --name redis -p 6379:6379 -v d:/docker/redis/redis.conf:/etc/redis/redis.conf -v d:/docker/redis/data:/data -d redis:latest redis-server --appendonly yes Config: redis.conf: 官网下载zip, 提取配置文件修改
二、创建/启动 mysql 容器
CMD: docker run --name mysql-5.6 -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql:5.6 Desc: docker run --name mysql-5.6 -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql:5.6
三、创建/启动 mongodb 容器
CMD: docker run --name mongodb -v d:/docker/mongodb:/etc/mongo -p 27017:27017 -d mongo:latest mongod --config /etc/mongo/mongod.conf Desc: docker run --name mongodb -v d:/docker/mongodb:/etc/mongo -p 27017:27017 -d mongo:latest mongod --config /etc/mongo/mongod.conf Config: mongod.conf: # 数据存储文件目录 dbpath=/data/db # 日志文件 logpath=/etc/mongo/logs/mongodb.log logappend=true # 权限启动开关 noauth=true # 绑定ip bind_ip=0.0.0.0 # 端口号 port=27017
四、jaegertracing/all-in-one
CMD: docker run --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 -d jaegertracing/all-in-one:latest Desc: docker run --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 -d jaegertracing/all-in-one:latest