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

[Question] 重启后 ldap 配置被删除 #1151

Open
pt-cc opened this issue Dec 6, 2024 · 4 comments
Open

[Question] 重启后 ldap 配置被删除 #1151

pt-cc opened this issue Dec 6, 2024 · 4 comments

Comments

@pt-cc
Copy link

pt-cc commented Dec 6, 2024

docker方式部署,配置了ldap,每次重启后ldap配置会被删除,启动方式为 ./Yearning run

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question]. The ldap configuration will be deleted after restarting.

Deployed in docker mode, ldap is configured. The ldap configuration will be deleted after each restart. The startup method is ./Yearning run

Copy link

dosubot bot commented Dec 6, 2024

在 Docker 环境中运行 Yearning 时,LDAP 配置的持久化可能需要确保配置数据正确存储和加载。Yearning 使用环境变量和 Docker 卷来管理配置和数据的持久性。虽然具体的 LDAP 配置持久化方法在文档中没有明确说明,但可以尝试以下步骤:

  1. 检查环境变量:确保所有必要的配置通过环境变量传递给 Docker 容器。

  2. 使用 Docker 卷:确保使用 Docker 卷来持久化配置数据。可以在 docker-compose.yml 中添加卷配置,以确保配置文件或数据库的持久性。

  3. 数据库持久化:LDAP 配置可能存储在数据库中,确保数据库数据通过 Docker 卷持久化。例如,docker-compose.yml 中的 MySQL 服务使用了卷来持久化数据:

    volumes:
      - ./data/mysql:/var/lib/mysql

通过这些方法,可以帮助确保 LDAP 配置在重启后不会丢失。如果问题仍然存在,可能需要检查具体的配置文件或数据库设置。

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@pt-cc
Copy link
Author

pt-cc commented Dec 6, 2024

我看ldap信息是写到数据库里面的,这个还需要写变量,或者配docker卷吗?mysql是外部的。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I see that the ldap information is written to the database. Do I need to write variables or configure a docker volume? mysql is external.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants