es
docker run -d --name es -p 9200:9200 -p 9300:9300 -v /data1/es:/usr/share/elasticsearch/data docker.io/cnkevin/es-ik -Des.cluster.name=cluster-name -Des.network.host=0.0.0.0 -Des.network.publish_host=0.0.0.0
mongodb
docker run -d --name mongodb -v /data1/mongodb:/data/db -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=pwd -p 27017:27017 mongo:3.2
连接:mongo -u admin -p pwd --authenticationDatabase admin
redis
docker run --name redis -d -v /data1/redis:/data -p 6379:6379 redis:4.0.12 redis-server --appendonly yes --requirepass "auth-pwd"
mq
docker run -d --hostname test --name rabbitmq -e RABBITMQ_DEFAULT_USER=root -e RABBITMQ_DEFAULT_PASS=mq-pwd -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 25672:25672 -p 15672:15672 -p 15671:15671 rabbitmq:3-management
mysql
docker run --name mysql -d -v /data1/mysql:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=taoche.123456 mysql:5.6
consul
docker run -d -v /root/workspace/consul/data:/consul/data -v /root/workspace/consul/config:/consul/config -p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302/udp -p 8302:8302 -p 8400:8400 -p 8500:8500 -p 8600:8600 --name=consul consul agent -server -client 0.0.0.0 -ui -bootstrap-expect=1 -advertise=10.3.1.15
docker run -d -P --name=consul2 consul agent -server -client 0.0.0.0 -ui -bootstrap-expect=1 -advertise=10.3.1.15 -join=10.3.1.15
zk
docker run -d -it -p 2181:2181 -p 2888:2888 -p 3888:3888 --name zookeeper harbor.kanche.com/kanche/zookeeper:3.4.9