vost commited on
Commit
4343e0f
verified
1 Parent(s): 99d7edd

Update docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +6 -17
docker-compose.yaml CHANGED
@@ -2,6 +2,8 @@ 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
@@ -9,25 +11,12 @@ services:
9
  - /dev/fuse:/dev/fuse
10
  environment:
11
  - HF_TOKEN=${HF_TOKEN}
12
- - RUST_LOG=hf_mount=info # Ativa logs para monitorarmos o streaming
13
  volumes:
14
  - ./mnt/hf:/mnt/hf:shared
15
- # Persistindo o cache no seu SSD para evitar re-download ap贸s restart
16
  - ./cache/hf-mount:/tmp/hf-mount-cache:rw
17
  command: >
18
- bash -c "
19
- mkdir -p /mnt/hf/public /mnt/hf/private &&
20
- hf-mount-fuse start --hf-token $${HF_TOKEN} \
21
- --cache-size 10000000000 \
22
- --poll-interval-secs 15 \
23
- --metadata-ttl-ms 5000 \
24
- vost/pub-scripts /mnt/hf/public &
25
-
26
- hf-mount-fuse start --hf-token $${HF_TOKEN} \
27
- --cache-size 2000000000 \
28
- --poll-interval-secs 10 \
29
- --metadata-ttl-ms 1000 \
30
- bucket vost/priv-configs /mnt/hf/private &&
31
- wait
32
- "
33
  restart: unless-stopped
 
2
  hf-provider:
3
  image: ghcr.io/huggingface/hf-mount-fuse:latest
4
  container_name: hf-provider
5
+ # Sobrescrevemos o entrypoint para poder usar l贸gica de shell
6
+ entrypoint: ["/bin/sh", "-c"]
7
  privileged: true
8
  cap_add:
9
  - SYS_ADMIN
 
11
  - /dev/fuse:/dev/fuse
12
  environment:
13
  - HF_TOKEN=${HF_TOKEN}
 
14
  volumes:
15
  - ./mnt/hf:/mnt/hf:shared
 
16
  - ./cache/hf-mount:/tmp/hf-mount-cache:rw
17
  command: >
18
+ "mkdir -p /mnt/hf/public /mnt/hf/private &&
19
+ hf-mount-fuse vost/pub-scripts /mnt/hf/public --fuse --hf-token $${HF_TOKEN} --allow-other --cache-size 10000000000 &
20
+ hf-mount-fuse bucket vost/priv-configs /mnt/hf/private --fuse --hf-token $${HF_TOKEN} --allow-other --cache-size 2000000000 &&
21
+ wait"
 
 
 
 
 
 
 
 
 
 
 
22
  restart: unless-stopped