fix: 基础镜像源参数化(BASE_REGISTRY),解决内网机器拉不动 docker.io
mirror-to-gitee / mirror (push) Successful in 7s

This commit is contained in:
技小云
2026-11-04 13:15:34 +08:00
committed by MiFaZhan
parent 4d87ffa954
commit 41a9f72412
2 changed files with 20 additions and 10 deletions
+3
View File
@@ -20,6 +20,9 @@ services:
dockerfile: Dockerfile
args:
SITE_BASE: '${SITE_BASE:-/}'
# 基础镜像源。默认官方 docker.io;拉不动时改成代理源,
# 例:docker.m.daocloud.io/library(实测 192.168.101.164 直连 docker.io 超时,该代理可用)
BASE_REGISTRY: '${BASE_REGISTRY:-docker.io/library}'
image: snowgoat-open-portal:local
container_name: snowgoat-open-portal
restart: unless-stopped