Update docker-compose.yaml
Browse files- docker-compose.yaml +32 -22
docker-compose.yaml
CHANGED
|
@@ -1,23 +1,33 @@
|
|
| 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 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
hf-mount
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
restart: unless-stopped
|
|
|
|
| 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 |
+
- 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 --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 --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
|