MySQL:
docker pull mysql:5.7
docker run -di --name=mysql -p 3306:3306 MYSQL_ROOT_PASSWORD=root mysql:5.7
docker exec -it mysql /bin/bash
mysql -uroot -proot --default-character-set=utf8
Nginx:
docker pull nginx
docker run -di --name=nginx -p 80:80 nginx
docker cp nginx:/etc/nginx /usr/local/mydata/nginx/
cd usr/local/mydata/
mv nginx conf
cd conf
cd ~
docker stop nginx
docker rm nginx
docker run -di --name=nginx -p 80:80 -v /usr/local/mydata/conf/:/etc/nginx nginx
Redis:
docker pull redis
docker run -di --name=redis -p 6379:6379 redis
RabbitMQ:
docker pull rabbitmq:3.7.12
docker run -di --name=rabbitmq -p 5671:5671 -p 4369:4369 -p 5672:5672 -p 25672:25672
-p 15671:15671 -p 15672:15672 rabbitmq
docker exec -it rabbitmq /bin/bash
rabbitmq-plugins enable rabbitmq- management