nginx
docker run -d --name nginx --net=host --restart=always -v /data/dockers/nginx/html:/usr/share/nginx/html:rw -v /data/dockers/nginx/conf/nginx.conf:/etc/nginx/nginx.conf:rw -v /data/dockers/nginx/logs:/var/log/nginx:rw -v /etc/localtime:/etc/localtime-v /data/dockers/nginx/conf/conf.d:/etc/nginx/conf.d:rw nginx:latest
mysql
docker run --name mysql8.0 -p 3306:3306 --restart=always -d -e MYSQL_ROOT_PASSWORD=123456 -v /data/dockers/mysql/conf:/etc/mysql:rw -v /data/dockers/mysql/datadir:/var/lib/mysql:rw -v /etc/localtime:/etc/localtime mysql:8.0
redis
docker run -d --name redis -p 6379:6379 -v /data/dockers/redis/data:/data:rw -v /etc/localtime:/etc/localtime -v /data/dockers/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf:rw redis --requirepass "1qaz@WSX"