# clickhouse
docker run --restart always \
-d \
--name clickhouse-server \
--ulimit nofile=262144:262144 \
--volume=/home/allspark/clickhouse/:/var/lib/clickhouse/ \
--volume=/home/allspark/clickhouse-server/:/etc/clickhouse-server/ \
--volume=/home/allspark/log/clickhouse-server/:/var/log/clickhouse-server/ \
-p 9000:9000 \
-p 8123:8123 \
-p 9009:9009 \
yandex/clickhouse-server
# zookeeper
docker run --restart=always \
--name zookeeper -p 2181:2181 \
-v /home/allspark/zookeeper/conf/:/apache-zookeeper-3.5.6-bin/conf/ \
-v /home/allspark/zookeeper/data/:/data \
-v /home/allspark/zookeeper/datalog/:/datalog -v /home/allspark/zookeeper/logs/:/logs -d zookeeper
# zkui
docker run --restart=always \
--name zkui -p 9090:9090 \
--link zookeeper:zookeeper \
-e ZK_SERVER="zookeeper:2181" \
-d registry.cn-hangzhou.aliyuncs.com/wkaca7114/zkui
# mysql
docker run --name mysql \
-p 3306:3306 \
--restart=always \
-e MYSQL_ROOT_PASSWORD=root \
-v /home/allspark/mysql/:/var/lib/mysql/ \
-d mysql:5.7 --character-set-server=utf8mb4 \
--collation-server=utf8mb4_unicode_ci \
--lower_case_table_names=1
# kafka
docker run -d --name kafka \
-p 9092:9092 \
--restart=always \
-e KAFKA_ADVERTISED_HOST_NAME=$thisIp \
-e KAFKA_ADVERTISED_PORT=9092 \
-e KAFKA_ZOOKEEPER_CONNECT=$thisIp:2181 \
-e KAFKA_HOST_NAME=0.0.0.0 \
-e KAFKA_BROKER_ID=1 \
-v /home/allspark/docker/kafka/kafka-logs-kafka:/kafka/kafka-logs-kafka \
-v /home/allspark/docker/kafka/logs:/opt/kafka/logs kafka
# redis
docker run --name redis \
-p 6379:6379 \
--restart=always \
-v $path/docker/redis/data:/data:rw \
--privileged=true \
-d redis