
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
CloudDM Console is the control-plane component in CloudDM cluster mode. It is suitable for team collaboration, multi-node access, and cross-network-region deployment. A working MySQL instance is required before startup.
[Website] [Documentation] [Blog] [https://gitee.com/clougence/open-cdm/stargazers] [https://github.com/ClouGence/open-cdm/stargazers]
CloudDM is a free and open-source database management platform designed for team collaboration scenarios. It provides access control, data masking, SQL auditing, CI/CD, and cross-region deployment capabilities.
It is not just a SQL query tool, and it is not just a database operations platform. It brings the following capabilities into one web product:
If you need a database platform that can be adopted directly rather than a lightweight command-line client, CloudDM is a better fit.
CloudDM uses the business-friendly Apache 2.0 license.
Console depends on MySQL. The simplest way is to use Docker Compose to start MySQL and Console together in one step.
Example compose file:
yamlservices: dm_mysql: image: mysql:8.0 container_name: cgdm-mysql restart: always volumes: - cgdm_mysql_data:/var/lib/mysql environment: MYSQL_DATABASE: cdmgr MYSQL_ROOT_PASSWORD: 123456 command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"] dm_console: image: bladepipe/cgdm-console:3.0.7 container_name: cgdm-console restart: always depends_on: - dm_mysql ports: - "8222:8222" - "8008:8008" volumes: - cgdm_console_conf:/root/cgdm/console/conf - cgdm_console_logs:/root/cgdm/console/logs - cgdm_console_data:/root/cgdm/console/data environment: APP_WEB_PORT: 8222 APP_WEB_JWT: "change_me_to_a_random_secret" APP_SERVE_NAME: dm_console APP_SERVE_PORT: 8008 # DB_HOST: dm_mysql DB_PORT: 3306 DB_DATABASE: cdmgr DB_USERNAME: root DB_PASSWORD: 123456 volumes: cgdm_console_conf: cgdm_console_logs: cgdm_console_data: cgdm_mysql_data:
Save it as docker-compose.yml, then start it with:
bashdocker compose -f docker-compose.yml up -d
For mainland China network environments, you can switch the image to the accelerated registry address:
yamlimage: cloudcanal-registry.cn-shanghai.cr.aliyuncs.com/clougence/cgdm-console:3.0.7
After startup, open:
texthttp://localhost:8222
On first access, the initialization wizard opens. The default account is
admin@cdmgr.com
| Environment Variable | Default | Purpose |
|---|---|---|
APP_WEB_PORT | 8222 | Web console port, mapped to server.port |
APP_WEB_JWT | Built-in image default | JWT secret. Use a long random string explicitly in production |
APP_SERVE_NAME | 127.0.0.1 | Hostname or address exposed by Console to Sidecar |
APP_SERVE_PORT | 8008 | Console communication port exposed to Sidecar |
WAIT_DB_TIMEOUT_SECONDS | 120 | Maximum number of seconds to wait for database connectivity during startup |
What should APP_SERVE_NAME be set to
dm_console in the compose example127.0.0.1, because it only works for container-local self-connections and not for an independent Sidecar| Environment Variable | Default | Purpose |
|---|---|---|
DB_HOST | E***y | MySQL host address. Must be set explicitly |
DB_PORT | 3306 | MySQL port |
DB_DATABASE | cdmgr | Metadata database name |
DB_USERNAME | E***y | MySQL username. Must be set explicitly |
DB_PASSWORD | E***y | MySQL password. It is recommended to set this explicitly |
| Container Path | Recommended Host Path | Description |
|---|---|---|
/var/lib/mysql | /data/cgdm-console/mysql | Stores MySQL data, important |
/root/cgdm/console/conf | /data/cgdm-console/conf | Configuration directory containing console.properties, important |
/root/cgdm/console/data | /data/cgdm-console/data | Runtime data directory, important |
/root/cgdm/console/logs | /data/cgdm-console/logs | Log directory |
| Container Port | Purpose | Required Mapping |
|---|---|---|
8222 | Web console | Yes |
8008 | Communication port between Sidecar and Console | Yes |
If Sidecar is not on the same host, 8008 must be reachable from the Sidecar network.
Console generates configuration from environment variables only when /root/cgdm/console/conf/console.properties does not exist.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务