Skip to content

ShyZhen/dockerLnmpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DockerLnmpr

php8+redis+mysql8+nginx 环境脚手架

修改配置

  • 最新docker-compose快捷创建php环境

  • 自己修改nginx/conf中的vhost配置

  • 需要调用php脚本的,比如laravel的php artisan,进入php的容器执行,同nginx一样,当前已经挂载了www目录

  • windows上挂载my.cnf会有权限问题,导致mysql无法启动,所以注释掉了这行 ./docker/mysql/etc/my.cnf:/etc/mysql/my.cnf

常用命令

docker-compose up -d
docker-compose down
docker images
docker ps
docker exec -it xxx /bin/sh

About

docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published