docker安装mysql,postgresql,minio,rabbitmq
1. docker安装mysql
1. docker pull mysql:5.7 2. docker run \ --restart=unless-stopped \ -p 3306:3306 \ --name mysql \ -v /Users/Documents/mysql/log:/var/log/mysql \ -v /Users/Documents/mysql/data:/var/lib/mysql \ -v /Users/Documents/mysql/conf/my.cnf:/etc/mysql/my.conf \ -e MYSQL_ROOT_PASSWORD=123456 \ -d mysql:5.7
参考链接:https://blog.csdn.net/BitcoinR/article/details/123161739
2. docker安装postgresql
1. docker pull postgresql 2. docker run -it --name postgres --restart always -e POSTGRES_PASSWORD='123456' -e POSTGRES_USER='admin' -e ALLOW_IP_RANGE=0.0.0.0/0 -v /Users/Documents/postgresql/data:/var/lib/postgresql -p 5432:5432 -d postgres
3. docker安装minio
docker run \ -p 9000:9000 \ -p 9001:9001 \ -v /home/oss/data:/data \ -v /home/oss/config:/root/.minio \ -e "MINIO_ROOT_USER=minioAdmin" \ -e "MINIO_ROOT_PASSWORD=minioAdmin" \ quay.io/minio/minio server /data --console-address ":9001"
4. docker安装rabbitmq