
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
As name hints mapseries is a web application for presenting, editing and cataloging map's series. The application consists of three separate applications. Presentation application listening on root /, cataloging application listening on /catalog and application for editing and creating new series listening on /edit.
Recommended way for deploying the application is to use https://docs.docker.com/compose/. In the root's directory of the repository you can find file docker-compose.yml which can be used as a template for your deployment. Everything what must be done is just filling in few environment variables described below. If you are done, just run following command in the root's directory.
bashdocker-compose up
As it was indicated in previous paragraph, if you want to deploy the application, you have to configure few environment variables. In this chapter I will explain meaning of this variables and what values you should put in.
| Name | Description |
|---|---|
| GITHUB_CLIENT_ID GITHUB_CLIENT_SECRET | These variables are needed for github authentication. For more information what they mean and mainly how to get them, see https://developer.github.com/v3/guides/basics-of-authentication/. |
| POSTGRES_PASSWORD | This variable is required by https://hub.docker.com/_/postgres/ and it defines password for the postgres user. |
It is also important to configure volume for your postgres image, so the database data are preserved between restart of the postgres image.
If you run the mapseries application using the docker-compose for the first time, it won't work yet because the postgres database must be prepared. You have to create database and user which are expected by the application. To prepare the database use following commands.
bash# attach to running postgres container docker exec -it mapseries_postgres_1 bash # login into the postgres. As a password use value passed to POSTGRES_PASSWORD env variable psql -U postgres -W # Execute following commands CREATE USER mapseries WITH PASSWORD 'mapseries'; CREATE DATABASE mapseries WITH owner = mapseries;
After that restart the application.
bashdocker-compose restart
Last step you have to do is set up one Github account as admin account for presentation application. Others admins may be added via GUI. Login to postgres database as it was described in previous paragraph. However now use username and password mapseries. Then execute following SQL command.
psql -U mapseries -W INSERT INTO admindao (name) VALUES ('admin');
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务