MYSQL部署
docker run -id \
-p 13306:3306 \
--name=mysql56 \
-v /docker/volume/mysql56/conf:/etc/mysql/conf.d \
-v /docker/volume/mysql56/logs:/logs \
-v /docker/volume/mysql56/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=962464 \
mysql:5.6
TOMCAT部署
docker run -id \
--name=tomcat -p 18080:8080 \
-v /docker/volume/tomcat/webapps:/usr/local/tomcat/webapps \
tomcat
NGINX部署
docker run -id --name nginx \
-p 8000:80 \
-v /docker/volume/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
-v /docker/volume/nginx/logs:/var/log/nginx \
-v /docker/volume/nginx/html:/usr/share/nginx/html \
nginx
ZOOKEEPER部署
docker run -d --name zookeeper \
-p 2181:2181 \
-t wurstmeister/zookeeper
KAFKA部署
docker run -d --name kafka \
-p 9092:9092 \
-e KAFKA_BROKER_ID=0 \
-e KAFKA_ZOOKEEPER_CONNECT=xxx.xxx.xxx.xxx:2181 \
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://xxx.xxx.xxx.xxx:9092 \
-e KAFKA_LISTENERS=PLAINTEXT://xxx.xxx.xxx.xxx:9092 \
wurstmeister/kafka