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

部署时能否使用外部MySQL数据库,而不是MySQL容器 #363

Open
KingStoning opened this issue Jan 16, 2025 · 2 comments
Open

Comments

@KingStoning
Copy link

起因是这样的,自己用默认的docker部署,数据库容器无法定时保存

所以想要使用外部数据库而不是数据库容器,想问一下可以吗?

我是用ChatGPT修改的compose一直部署失败,所以来问一问

@lybtt
Copy link

lybtt commented Jan 17, 2025

按理来说,修改DATABASE_URL 就行了吧,你需要先确认你的外部数据库支不支持远程访问。

@KingStoning
Copy link
Author

按理来说,修改DATABASE_URL 就行了吧,你需要先确认你的外部数据库支不支持远程访问。

我是部署在我的本地主机上面的,想请教一下,这样的话,正确的数据库URL怎么修改呢?(❁´◡`❁)

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