Skip to content

saltbo/self-hosted-mirrors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self-hosted mirrors

GitHub repo size visits License

Support Mirrors

  • Go Module
  • Npm Package
  • Docker Registry

Required

  • Docker
  • Docker Compose

Quick start

  1. 准备一个域名和一台国外的服务器
  2. 将准备好的域名解析到该服务器
  3. 确保防火墙放行80和443端口
  4. 克隆本仓库,执行docker-compose up -d启动本项目即可
git clone https://github.com/saltbo/self-hosted-mirrors.git
cd self-hosted-mirrors

cp registry/config.example.yml registry/config.yml
vi registry/config.yml  #设置您的DockerHub账户密码

cp caddy/Caddyfile.example caddy/Caddyfile
vi caddy/Caddyfile  #将域名改为您自己的域名

docker-compose up -d

License

This repo is under the MIT license. See the LICENSE file for details.