是否支持 Docker 的 environment 变量来传导配置? #2815
Hello-niuniu
started this conversation in
Ideas
Replies: 1 comment
-
|
懒省事直接用 SQLite ,我想到了一个给 SQLite 持久化的办法,也就是把默认配置文件中的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
使用 Docker 部署,8 版本直接启动默认使用 SQLite 作为数据库,但是 SQLite 的数据文件也是放在程序同层级目录,持久化都没办法搞;想使用 MySQL+Redis ,但是有需要单独手动处理步骤,比如需要独立的配置文件、完成数据库初始化等等;官方的 Docker-Compose 部署,下载的压缩包中附带了很多冗余的内容,某些使用场景下(比如集成 Prometheus ,就是为了替代 Grafana 使用)不需要那么多复杂的组件。
成熟的 Docker 部署方式,都支持 docker run -e 或者 Compose 中的 environment ,用变量 + 初始化脚本完成程序配置修改。
我不确定现在是否已经支持这种方式,如果支持的话,那就是我一直没找到怎么配置,求配置方案。
如果暂时不支持这种方式的话,希望夜莺也能集成这种更友好的方式,使用变量来修改配置文件中的数据库类型、地址等。可以实现通过一个 Compose 文件直接启动,完成部署并支持持久化(Nightingale + MySQL + Redis)。
Beta Was this translation helpful? Give feedback.
All reactions