# mysql 迁移
docker run -d --name=mysql \
-e TZ=Asia/Shanghai \
-e MYSQL_ROOT_PASSWORD=qwer1234 \
-p 3306:3306 \
-v /opt/mysql:/var/lib/mysql \
mysql:5.7.26
# rabbitmq
docker run -d --name rabbitmq-test \
-v /opt/rabbitmq-test:/var/lib/rabbitmq \
-p 5673:5672 -p 15673:15672 \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
rabbitmq:3.7.7-management
docker run -d --name rabbitmq-dev \
-v /opt/rabbitmq:/var/lib/rabbitmq \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
-p 5672:5672 -p 15672:15672 \
rabbitmq:3.7.7-management
# redis 迁移
docker run -d --name redis-dev \
-e TZ=Asia/Shanghai \
-v /opt/redis:/data/ \
-p 6379:6379 \
redis:4 redis-server /data/redis.conf
cat redis.conf
port 6379
daemonize no
save 900 1
save 300 10
save 60 10000
dbfilename dump.rdb
dir /data
requirepass mima123456
maxclients 10000
slowlog-log-slower-than 10000
slowlog-max-len 128
# nacos迁移
docker run -d --name nacos-dev \
-p 8848:8848 \
-e MYSQL_SERVICE_PORT=3306 \
-e JVM_XMN=1g \
-e JVM_XMS=2g \
-e MYSQL_SERVICE_DB_NAME=nacos_dev \
-e MYSQL_SERVICE_PASSWORD=dev123456 \
-e SPRING_DATASOURCE_PLATFORM=mysql \
-e JVM_XMX=2g \
-e MODE=standalone \
-e MYSQL_SERVICE_HOST=192.168.21.110 \
-e MYSQL_SERVICE_USER=nacos_dev \
-e NACOS_USER=nacos \
-e JVM_MS=128m \
-e JVM_MMS=320m \
-e TIME_ZONE=Asia/Shanghai \
nacos/nacos-server:latest