mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-16 10:34:25 -04:00
如何使用现有的PostgreSQL数据库(含pgvector向量插件)、redis、nginx作为dify的容器 #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yuairu on GitHub (Mar 14, 2025).
我尝试将docker-compose-template.yaml中的相关配置删除且将.env.example的参数修改后依旧会拉取postgres镜像,我应该如何设置才能使用现有的容器(或宿主机的pg、redis等服务)
@dosubot[bot] commented on GitHub (Mar 14, 2025):
Hey @yuairu! 👋 I'm here to help you with any bugs or questions you have while waiting for a human maintainer. Let's squash those bugs together!
要使用现有的PostgreSQL数据库(含pgvector向量插件)、Redis、Nginx作为Dify的容器,而不拉取新的Postgres镜像,可以按照以下步骤配置:
PostgreSQL配置:
Redis配置:
Nginx配置:
通过以上配置,您可以使用现有的PostgreSQL、Redis和Nginx来运行Dify,而无需拉取新的Postgres镜像[1].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@yuairu commented on GitHub (Mar 14, 2025):
依旧会下载postgres、redis等镜像,我需要在docker-compose up -d时不再拉取镜像/创建容器,而是使用已有的服务,这些服务不在该宿主机或宿主机的容器内
@jjyyds commented on GitHub (Mar 24, 2025):
改docker-compose.yaml。或者改动docker-compose-template.yaml后,用python执行generate_docker_compose,会重新生成docker-compose.yaml