huggingface支持
This commit is contained in:
@@ -21,3 +21,7 @@ quay.{$DOMAIN} {
|
||||
k8s.{$DOMAIN} {
|
||||
reverse_proxy * k8s:5000
|
||||
}
|
||||
|
||||
huggingface.{$DOMAIN} {
|
||||
reverse_proxy * huggingface:5000
|
||||
}
|
||||
@@ -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
16
huggingface/config.yml
Normal 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
|
||||
Reference in New Issue
Block a user