
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/docker/pulls/yongjhih/parse-server.svg](https://hub.docker.com/r/yongjhih/parse-server/) https://img.shields.io/docker/stars/yongjhih/parse-server.svg](https://hub.docker.com/r/yongjhih/parse-server/) https://img.shields.io/github/tag/yongjhih/docker-parse-server.svg](https://hub.docker.com/r/yongjhih/parse-server/tags/) https://img.shields.io/github/license/yongjhih/docker-parse-server.svg](https://github.com/yongjhih/docker-parse-server/raw/master/LICENSE.txt) https://img.shields.io/travis/yongjhih/docker-parse-server.svg](https://travis-ci.org/yongjhih/docker-parse-server) https://img.shields.io/gitter/room/yongjhih/docker-parse-server.svg](https://gitter.im/yongjhih/docker-parse-server)
https://www.herokucdn.com/deploy/button.png](https://heroku.com/deploy) 
GRAPHQL_SUPPORT=true和GRAPHQL_SCHEMA配置)!https://github.com/yongjhih/docker-parse-server/raw/master/art/parse-server-diagram.png
注意
sh$ docker run -d -p 27017:27017 --name mongo mongo $ docker run -d \ -e APP_ID=${APP_ID} \ -e MASTER_KEY=${MASTER_KEY} \ -p 1337:1337 \ --link mongo \ --name parse-server \ yongjhih/parse-server $ docker run -d \ -p 2022:22 \ --volumes-from parse-server \ --name parse-cloud-code-git \ yongjhih/parse-server:git # 测试parse-server $ curl -X POST \ -H "X-Parse-Application-Id: {appId}" \ -H "Content-Type: application/json" \ -d '{}' \ http://localhost:1337/parse/functions/hello $ docker run -d \ -e APP_ID=${APP_ID} \ -e MASTER_KEY=${MASTER_KEY} \ -e SERVER_URL=http://localhost:1337/parse \ -p 4040:4040 \ --link parse-server \ --name parse-dashboard \ yongjhih/parse-dashboard # 生产环境中上述命令需通过SSH远程登录管理面板,若需直接访问(如本地开发),需添加允许不安全HTTP的配置,并设置用户名密码: $ docker run -d \ -e APP_ID=$(APP_ID)\ -e MASTER_KEY=$(MASTER_KEY)\ -e SERVER_URL=http://localhost:1337/parse \ -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 \ -e USER1=yourUsername \ -e USER1_PASSWORD=yourUsernamesPassword \ -p 4040:4040 \ --link parse-server \ --name parse-dashboard \ yongjhih/parse-dashboard
sh$ wget https://github.com/yongjhih/docker-parse-server/raw/master/docker-compose.yml $ APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 SERVER_URL=http://localhost:1337/parse docker-compose up -d
注意
PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1允许不安全HTTP访问。
$ wget https://github.com/yongjhih/docker-parse-server/raw/master/docker-compose.yml -O - | APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY docker-compose up -d -f - # Docker Compose容器不支持此方式
如何推送云代码到服务器
https://github.com/yongjhih/docker-parse-server/raw/master/art/docker-parse-server-git.gif]([***]
sh# 生成SSH密钥对(~/.ssh/id_rsa.pub和私钥),按提示操作即可 $ ssh-keygen -t rsa # 若Git容器名为`parse-cloud-code-git` $ docker exec -i parse-cloud-code-git ssh-add-key < ~/.ssh/id_rsa.pub # 端口2022,仓库路径为`/parse-cloud-code` $ git clone ssh://git@localhost:2022/parse-cloud-code $ cd parse-cloud-code $ echo "Parse.Cloud.define('hello', function(req, res) { res.success('Hi, git'); });" > main.js $ git add main.js && git commit -m 'Update main.js' $ git push origin master # 测试云代码 $ curl -X POST \ -H "X-Parse-Application-Id: ${APP_ID}" \ -H "Content-Type: application/json" \ -d '{}' \ http://localhost:1337/parse/functions/hello
可使用REST API、JavaScript SDK或其他开源SDK:
curl -X POST \ -H "X-Parse-Application-Id: YOUR_APP_ID" \ -H "Content-Type: application/json" \ -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \ http://localhost:1337/parse/classes/GameScore curl -X POST \ -H "X-Parse-Application-Id: YOUR_APP_ID" \ -H "Content-Type: application/json" \ -d '{}' \ http://localhost:1337/parse/functions/hello curl -H "X-Parse-Application-Id: YOUR_APP_ID" \ -H "X-Parse-Master-Key: YOUR_MASTER_KEY" \ -H "Content-Type: application/json" \ http://localhost:1337/parse/serverInfo
Parse.initialize('YOUR_APP_ID','unused'); Parse.serverURL = 'https://whatever.herokuapp.com'; var obj = new Parse.Object('GameScore'); obj.set('score',1337); obj.save().then(function(obj) { console.log(obj.toJSON()); var query = new Parse.Query('GameScore'); query.get(obj.id).then(function(objAgain) { console.log(objAgain.toJSON()); }, function(err) {console.log(err); }); }, function(err) { console.log(err); });
// 在应用类中 Parse.initialize(new Parse.Configuration.Builder(getApplicationContext()) .applicationId("YOUR_APP_ID") .clientKey("YOUR_CLIENT_ID") .server("http://YOUR_SERVER_URL/parse/") // 'parse'后需加 '/' .build()); ParseObject testObject = new ParseObject("TestObject"); testObject.put("foo", "bar"); testObject.saveInBackground();
class AppDelegate: UIResponder, UIApplicationDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool { let configuration = ParseClientConfiguration { $0.applicationId = "YOUR_APP_ID" $0.clientKey = "YOUR_CLIENT_ID" $0.server = "http://YOUR_SERVER_URL/parse" } Parse.initializeWithConfiguration(configuration) } }
启用GraphQL功能:
shellGRAPHQL_SUPPORT=true APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY SERVER_URL=http://localhost:1337/parse docker-compose up -d
确保
./cloud/graphql/schema.js已推送至云代码。
访问:http://localhost:1337/graphql?query=%7B%0A%20%20hello%0A%7D%0A
https://github.com/didierfranc.png?size=40](https://github.com/didierfranc) https://github.com/ArnaudValensi.png?size=40](https://github.com/ArnaudValensi) https://github.com/gerhardsletten.png?size=40](https://github.com/gerhardsletten) https://github.com/acinader.png?size=40](https://github.com/acinader) https://github.com/kandelvijaya.png?size=40](https://github.com/kandelvijaya) https://github.com/mjdev https://github.com/vitaminwater.png?size=40](https://github.com/vitaminwater) https://github.com/euklid https://github.com/walkerlee https://github.com/chainkite https://github.com/cleever.png?size=40](https://github.com/cleever) https://github.com/katopz.png?size=40](https://github.com/katopz)
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务