From ae57d2bd1f4f2813f8ac4e775b2da017b7cb43d9 Mon Sep 17 00:00:00 2001 From: zhangxuejiang Date: Tue, 22 Jun 2021 23:41:00 +0800 Subject: [PATCH] change README-zh --- README-zh.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README-zh.md b/README-zh.md index 6055f2d..e519ef1 100644 --- a/README-zh.md +++ b/README-zh.md @@ -72,6 +72,21 @@ git clone https://github.com/laradock/laradock.git ```bash 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. 运行这些容器。 ```bash