# apt-get install linux-image-extra-$(uname -r) \ linux-image-extra-virtual
# apt-get install apt-transport-https \ ca-certificates \ curl \software-properties-common
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
# apt-get update
# apt-get install docker-ce
# systemctl start docker
git clone https://github.com/Laradock/laradock.git
mkdir wwwroot composer create-project --prefer-dist laravel/laravel blog
cd laradock/ cp env-example .env
APP_CODE_PATH_HOST=../wwwroot/
docker-compose up -d nginx mysql redis beanstalkd
DB_HOST=mysql REDIS_HOST=redis QUEUE_HOST=beanstalkd
root /var/www/blog/public; # blog为wwwroot下新建的laravel项目
docker-compose up -d nginx
DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=root DB_USERNAME=root
应用key
composer
docker-compose exec workspace bash
添加多域名
cd laradock/nginx/sites/ cp laravel.conf.example abc.conf
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。