1. 装置windows版本docker,并且装置

    【官网】:https://www.docker.com/
  2. 下载laradock

    【github】:https://github.com/laradock/l...
    git clone https://github.com/laradock/laradock.git
  3. 进入laradock文件夹
    复制.env.example到.env
    关上.env,按需进行一些调整,比方:

    WORKSPACE_INSTALL_NODE=true 改为 false,不须要装置nodeWORKSPACE_INSTALL_YARN=true 改为 false,不须要装置yarnWORKSPACE_INSTALL_NPM_GULP=true 改为 false,不须要装置gulpWORKSPACE_INSTALL_NPM_VUE_CLI=true 改为 false,不须要装置vueWORKSPACE_SSH_PORT=2222 改为 60022 ,windows 2222 会报错占用
  4. 按需启动:
    docker-compose up -d nginx php-fpm mysql redis workspace
  5. 进入workspace控制台,装置laravel代码

    composer create-project --prefer-dist laravel/laravel:^7.0 my_php_project
  6. 拜访 localhost 验证