Merge pull request #2999 from egege/master

change README-zh
This commit is contained in:
Shao Yu-Lung (Allen) 2021-06-24 22:58:47 +08:00 committed by GitHub
commit 2bbe850d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -72,6 +72,21 @@ git clone https://github.com/laradock/laradock.git
```bash ```bash
cp .env.example .env cp .env.example .env
``` ```
如果你在中国内地可以修改一些配置来进行镜像加速不过build时还是会请求GitHub来下载一些文件此时需要保证你的计算机能连上GitHub
(1配置DockerHub镜像加速[链接](https://www.runoob.com/docker/docker-mirror-acceleration.html)
(2) 修改.env
```
# 开启ubuntu国内源
CHANGE_SOURCE=true
# 默认是阿里云可选项有aliyun|zju|tsinghua|163|ustc
UBUNTU_SOURCE=aliyun
# composer镜像源
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://mirrors.aliyun.com/composer/
# nvm镜像源
WORKSPACE_NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
# npm镜像源
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
```
3. 运行这些容器。 3. 运行这些容器。
```bash ```bash