docker化了lnmp/lamp

docker化了lnmp/lamp

docker化了lnmp/lamp:https://lnmp.org/,lnmp docker一键部署镜像

命令:docker create -ti –name lamp -p 80:80 -p 443:443 -v /data/lamp/mysql/var:/usr/local/mysql/var -v /data/lamp/apache/conf:/usr/local/apache/conf -v /data/lamp/wwwroot:/home/wwwroot -v /data/lamp/logs:/home/logs -v /data/lamp/ssl:/root/ssl $base_lnmp_images

参数:

mysql/var:数据库目录

apache/conf:apache配置目录

/home/wwwroot:网站文件目录

/home/logs:日志目录

/root/ssl:ssl证书目录

$base_lnmp_images为基础镜像