# ======================================== # Docker 镜像源配置示例 # ======================================== # # 【使用方法】 # 1. 复制此文件:cp .env.example .env # 2. 编辑 .env 文件,删掉下面 4 个配置行前面的 # 号: # - DOCKER_REGISTRY # - NPM_REGISTRY # - GO_PROXY # - ALPINE_MIRROR # 3. 保存后运行:docker-compose build # # 【注意】 # - 只删除配置行前面的 #,不要删除注释说明的 # # - 国外用户请勿配置,使用默认官方源即可 # # ======================================== # ----------------------------- # Docker Hub 镜像源(末尾必须有斜杠 /) # ----------------------------- # # 推荐镜像源: # docker.1ms.run/ - 速度快,推荐 # dockerpull.org/ - 备用 # dockerproxy.cn/ - 备用 # # 删除下面行首的 # 来启用: # DOCKER_REGISTRY=docker.1ms.run/ # ----------------------------- # npm 镜像源(末尾斜杠可选) # ----------------------------- # # 推荐镜像源: # https://registry.npmmirror.com/ - 淘宝镜像,推荐 # # 删除下面行首的 # 来启用: # NPM_REGISTRY=https://registry.npmmirror.com/ # ----------------------------- # Go 模块代理(注意末尾不要斜杠) # ----------------------------- # # 推荐镜像源: # https://goproxy.cn,direct - 七牛云,推荐 # https://goproxy.io,direct - 备用 # https://mirrors.aliyun.com/goproxy/,direct - 阿里云 # # 删除下面行首的 # 来启用: # GO_PROXY=https://goproxy.cn,direct # ----------------------------- # Alpine apk 镜像源(末尾不要斜杠) # ----------------------------- # # 推荐镜像源: # mirrors.aliyun.com - 阿里云,推荐 # mirrors.tuna.tsinghua.edu.cn - 清华大学 # mirrors.ustc.edu.cn - 中科大 # # 删除下面行首的 # 来启用: # ALPINE_MIRROR=mirrors.aliyun.com