huggingface支持

This commit is contained in:
xy3
2025-02-07 23:21:49 +08:00
parent 1aa2b15a3e
commit 00bc44f054
3 changed files with 27 additions and 0 deletions

View File

@@ -21,3 +21,7 @@ quay.{$DOMAIN} {
k8s.{$DOMAIN} {
reverse_proxy * k8s:5000
}
huggingface.{$DOMAIN} {
reverse_proxy * huggingface:5000
}

View File

@@ -50,3 +50,10 @@ services:
image: "ghcr.io/sky22333/hub-proxy"
container_name: "ghproxy"
restart: "always"
huggingface:
image: "registry:2.8.3"
container_name: "huggingface"
restart: "always"
volumes:
- "./huggingface/config.yml:/etc/docker/registry/config.yml"

16
huggingface/config.yml Normal file
View File

@@ -0,0 +1,16 @@
version: 0.1
storage:
filesystem:
rootdirectory: /var/lib/registry
delete:
enabled: true
maintenance:
uploadpurging:
enabled: true
age: 72h
dryrun: false
interval: 1m
http:
addr: 0.0.0.0:5000
proxy:
remoteurl: https://huggingface.co