Commit 5545f0cd by JustSong

docs: update README

parent 393443dd
......@@ -279,7 +279,7 @@ graph LR
3. `SQL_DSN`:设置之后将使用指定数据库而非 SQLite,请使用 MySQL 或 PostgreSQL。
+ 例子:
+ MySQL:`SQL_DSN=root:123456@tcp(localhost:3306)/oneapi`
+ PostgreSQL:`SQL_DSN=postgres://postgres:123456@localhost:5432/oneapi`
+ PostgreSQL:`SQL_DSN=postgres://postgres:123456@localhost:5432/oneapi`(适配中,欢迎反馈)
+ 注意需要提前建立数据库 `oneapi`,无需手动建表,程序将自动建表。
+ 如果使用本地数据库:部署命令可添加 `--network="host"` 以使得容器内的程序可以访问到宿主机上的 MySQL。
+ 如果使用云数据库:如果云服务器需要验证身份,需要在连接参数中添加 `?tls=skip-verify`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment