Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更换 Polyfiller Docker 卷元数据库 #2

Closed
TechQuery opened this issue Mar 11, 2024 · 3 comments · Fixed by #3 or #5
Closed

更换 Polyfiller Docker 卷元数据库 #2

TechQuery opened this issue Mar 11, 2024 · 3 comments · Fixed by #3 or #5
Assignees
Labels
enhancement New feature or request

Comments

@TechQuery
Copy link
Member

相关资料

建议方案

在以下配置中新增独立数据库服务:

services:
api-service:
image: polyfiller/api-service
environment:
- NODE_ENV=production
ports:
- 3001:3000
volumes:
- polyfill-store:/tmp/@wessberg/polyfiller
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 3s
retries: 5
start_period: 30s
labels:
- autoheal=true
restart: always
logging:
driver: json-file
options:
max-size: 10m

再配置到:

metaurl: sqlite3://polyfill-store.db

@TechQuery TechQuery added the enhancement New feature or request label Mar 11, 2024
@tianheg tianheg self-assigned this Mar 11, 2024
@tianheg
Copy link
Member

tianheg commented Mar 12, 2024

是不是换成 How to Set Up Object Storage | JuiceFS Document Center 这里提到的其他数据库,那换成 Azure Blob Storage 可以吗,我们的服务不都是部署在 Azure 上的吗

@TechQuery
Copy link
Member Author

是不是换成 How to Set Up Object Storage | JuiceFS Document Center 这里提到的其他数据库,那换成 Azure Blob Storage 可以吗,我们的服务不都是部署在 Azure 上的吗

不是,我们就是用 JuiceFS 来封装 Blob Storage 为文件系统的。现在是要更换它的元数据库,不是文件数据库。

参考:https://juicefs.com/docs/community/databases_for_metadata

@TechQuery
Copy link
Member Author

@luojiyin1987 尝试按以下方式自行包装 Docker 数据卷容器来解决这个问题:
juicedata/docker-volume-juicefs#39 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
3 participants