vost commited on
Commit
eafe99e
·
verified ·
1 Parent(s): c743329

Upload docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +23 -0
docker-compose.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ hf-provider:
3
+ image: ghcr.io/huggingface/hf-mount-fuse:latest
4
+ container_name: hf-provider
5
+ privileged: true
6
+ cap_add:
7
+ - SYS_ADMIN
8
+ devices:
9
+ - /dev/fuse:/dev/fuse
10
+ environment:
11
+ - HF_TOKEN=${HF_TOKEN}
12
+ volumes:
13
+ # Usamos o caminho relativo ao C:\AI-LAB que seu script criou
14
+ # O :shared é o que permite a "mágica" do FUSE vazar para fora do container
15
+ - ./mnt/hf:/mnt/hf:shared
16
+ command: >
17
+ sh -c "
18
+ mkdir -p /mnt/hf/public /mnt/hf/private &&
19
+ hf-mount vost/pub-scripts /mnt/hf/public --token $${HF_TOKEN} --allow-other --cache-size 10GB &
20
+ hf-mount vost/priv-configs /mnt/hf/private --token $${HF_TOKEN} --allow-other --cache-size 2GB &&
21
+ wait
22
+ "
23
+ restart: unless-stopped