Self-hosted acceleration proxy for Docker registries, GitHub files, and Hugging Face downloads.

HubProxy is a lightweight self-hosted acceleration proxy for Docker registries, GitHub release/raw files, and Hugging Face downloads.
ghcr.io/sky22333/hubproxy:latest.5000, bound to the domain selected during deployment./data for config.toml.cd /data && /root/hubproxy, so HubProxy reads /data/config.toml without masking the binary in /root.Open the deployed domain to use the built-in web interface.
Docker pull acceleration:
docker pull ${ZEABUR_WEB_DOMAIN}/nginx
docker pull ${ZEABUR_WEB_DOMAIN}/ghcr.io/sky22333/hubproxy
Docker daemon registry mirror:
{
"registry-mirrors": ["${ZEABUR_WEB_URL}"]
}
GitHub file acceleration:
curl -L ${ZEABUR_WEB_URL}/https://raw.githubusercontent.com/<owner>/<repo>/main/path/to/file -o file
HubProxy is intended for learning, lawful acceleration, and private/self-hosted usage. A public proxy can attract abuse, so keep rate limits enabled and adjust the access whitelist or blacklist in /data/config.toml when exposing it broadly.
The upstream Docker Compose example uses the default latest tag. If upstream publishes stable versioned container tags later, pin this template to a specific tag for more reproducible deployments.
本模板已在服务中挂载持久化卷:
config -> /data:保存 /data/config.toml。HubProxy Docker 镜像的二进制文件位于 /root/hubproxy,不能把硬盘直接挂载到 /root,否则会覆盖二进制并导致 exec: "./hubproxy": stat ./hubproxy: no such file or directory。因此模板使用自定义启动命令 cd /data && /root/hubproxy,让程序从持久化目录读取 config.toml。
挂载卷的操作(Dashboard):
Volumes 选项卡,点击 Mount Volumes。config,Mount Directory 填写 /data。/data/config.toml。迁移现有配置示例:
npx zeabur@latest service exec --name HubProxy -- cat /root/config.tomlnpx zeabur@latest service exec --name HubProxy -- sh -c 'cat > /data/config.toml'
然后把备份内容粘贴进去并结束输入;也可以直接在 Zeabur Dashboard 的 Config Editor 中编辑 /data/config.toml。存储建议: