Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

docs(getting-started): add Docker environment variable guide

二丫讲梵e452ce26ceac
diff --git a/docs/content/docs/getting-started.cn.mdx b/docs/content/docs/getting-started.cn.mdx
index 9a6d9c67c4..0f32c2b330 100644
--- a/docs/content/docs/getting-started.cn.mdx
+++ b/docs/content/docs/getting-started.cn.mdx
@@ -94,6 +94,18 @@ description: 安装 DBX、创建第一个连接,并了解桌面版、Docker
`latest` 标签会拉取当前发布版本。这里使用跨平台的 `dbx-data` 命名卷;中国大陆用户可改用 `docker.cnb.cool/dbxio.com/dbx:latest`,以获得更快的拉取速度。
+ ### 环境变量
+
+ Docker 镜像支持以下启动参数。使用 `-e 变量名=值` 指定,例如生产环境可添加 `-e DBX_PASSWORD=your-password`:
+
+ | 参数 | 默认值 | 用途 |
+ | --- | --- | --- |
+ | `DBX_PASSWORD` | 未设置 | Web 登录密码,生产环境建议设置 |
+ | `DBX_DISABLE_PASSWORD` | `false` | 设为 `true` 或 `1` 可关闭登录保护 |
+ | `DBX_DATA_DIR` | `/app/data` | 持久化数据目录 |
+ | `DBX_PORT` | `4224` | 容器内监听端口 |
+ | `DBX_PUBLIC_BASE_PATH` | `/` | 子路径部署,例如 `/dbx` |
+
启动后访问 `http://localhost:4224`。
`deploy/docker-compose.yml` 用于构建当前源码。若要部署已发布镜像,请使用 `deploy/docker-compose.release.yml`:
diff --git a/docs/content/docs/getting-started.mdx b/docs/content/docs/getting-started.mdx
index bd74dc4ddf..cbc1ab24d0 100644
--- a/docs/content/docs/getting-started.mdx
+++ b/docs/content/docs/getting-started.mdx
@@ -88,6 +88,18 @@ This guide gets you through three things:
The `latest` tag pulls the current release. This uses the cross-platform `dbx-data` named volume. For faster pulls in China, use `docker.cnb.cool/dbxio.com/dbx:latest` instead.
+ ### Environment Variables
+
+ The Docker image supports the following startup variables. Set one with `-e NAME=value`; for example, production deployments should add `-e DBX_PASSWORD=your-password`:
+
+ | Variable | Default | Purpose |
+ | --- | --- | --- |
+ | `DBX_PASSWORD` | Not set | Web login password; recommended for production |
+ | `DBX_DISABLE_PASSWORD` | `false` | Set to `true` or `1` to disable login protection |
+ | `DBX_DATA_DIR` | `/app/data` | Persistent data directory |
+ | `DBX_PORT` | `4224` | Container listen port |
+ | `DBX_PUBLIC_BASE_PATH` | `/` | Deploy below a subpath, such as `/dbx` |
+
Then open `http://localhost:4224`.
`deploy/docker-compose.yml` builds the current checkout. To deploy a published image, use `deploy/docker-compose.release.yml`: