feat: integrate Redis service for JuiceFS with Docker Compose and update configuration

This commit is contained in:
2025-03-14 16:55:57 +01:00
parent 9009954996
commit e1c5113f87
4 changed files with 68 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ Before=docker.service
[Service]
Type=simple
ExecStart=/usr/local/bin/juicefs mount sqlite3:///mnt/juicefs-metadata.sqlite /mnt/object_storage --cache-dir=/var/jfsCache --buffer-size=1024 --prefetch=2 --cache-size=204800 --attr-cache=3 --entry-cache=3 --open-cache=3 --no-bgjob
Environment="REDIS_PASSWORD={{ redis_password }}"
ExecStart=/usr/local/bin/juicefs mount redis://localhost:6379/0 /mnt/object_storage --cache-dir=/var/jfsCache --buffer-size=1024 --prefetch=4 --cache-size=204800 --attr-cache=3 --entry-cache=3 --open-cache=3
Restart=on-failure
[Install]