mysql
docker run -d --privileged=true \
-p 3306:3306 --name mysql \
--restart=always \
-v /home/dockerdata/mysql/data/:/var/lib/mysql/ \
-v /home/dockerdata/mysql/conf/:/etc/mysql/conf.d/ \
-v /home/dockerdata/mysql/log:/var/log/mysql \
-e MYSQL_ROOT_PASSWORD=123456 \
-e MYSQL_DATABASE=kdztcloud \
-e TZ=Asia/Shanghai \mysql:8.0.33
redis
docker run -d -p 6379:6379 --privileged=true --restart=always \
-v /home/dockerdata/redis/conf:/redis/config:rw \
-v /home/dockerdata/redis/data/:/redis/data/:rw \
-e TZ=Asia/Shanghai \
--name redis redis:6.2.12 \
redis-server /redis/config/redis.conf --appendonly yes
mongo
docker run -d -p 27017:27017 --privileged=true --restart=always \
-v /home/dockerdata/mongo:/etc/mongo
-v /home/dockerdata/mongo/data/db:/data/db
-e TZ=Asia/Shanghai
-e MONGO_INITDB_ROOT_USERNAME=admin
-e MONGO_INITDB_ROOT_PASSWORD=kdzt123456.
--name mongo mongo:7.0 \
mongod --config /etc/mongo/mongod.conf
rabitmq
docker run -d -p 5672:5672 --privileged=true --restart=always \
-v /home/dockerdata/rabbit/data:/data \
-e TZ=Asia/Shanghai \
-e RABBITMQ_DEFAULT_VHOST=my_vhost \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
--name rabbitmq rabbitmq:3.8-management
rnacos
docker run --name rnacos -p 8848:8848 -p 9848:9848 -p 10848:10848 \
-v /home/dockerdata/rnacos:/io:rw --restart=always \
-d qingpan/rnacos:stable