
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Build and deploy a simple Wagtail CMS website in minutes with Docker or Kubernetes. Simple and fast.
Leave a star ⭐ if you like this project 🙂 thank you.
A lightweight, ready-to-use Docker image for Wagtail CMS. Perfect for developers, bloggers, and anyone who wants to launch a Wagtail-powered website instantly—no manual setup required. Supports persistent storage, environment variable configuration, and easy backup. Ideal for quick prototyping, demos, and learning Wagtail.
This image provides a complete Wagtail CMS environment with all dependencies preinstalled.
Just pull and run—your Wagtail site is ready at http://localhost:8000.
/app/data to keep your database and media files ready for easy backup and migration.1. Pull the Image:
bashdocker pull mrcolorrain/wagtail:latest
2. Run the Container:
Option 1) 🐳 Docker run:
bashdocker run -d --name wagtail \ -p 8000:8000 \ -v $PWD/app/data:/app/data \ -e DJANGO_SECRET_KEY=your-secret-key \ -e DJANGO_SUPERUSER_USERNAME=admin \ -e DJANGO_SUPERUSER_EMAIL=admin@example.com \ -e DJANGO_SUPERUSER_PASSWORD=yourpassword \ mrcolorrain/wagtail:latest
Option 2) 🐳 Docker compose:
yamlversion: "3.8" services: wagtail: image: mrcolorrain/wagtail:latest ports: - "8000:8000" volumes: - ./app/data:/app/data environment: DJANGO_SECRET_KEY: your-secret DJANGO_SUPERUSER_USERNAME: admin DJANGO_SUPERUSER_EMAIL: admin@example.com DJANGO_SUPERUSER_PASSWORD: supersecret
app/data/ folder on your host.3. Kubernetes Deployment:
k8s/ folder:bashkubectl apply -f k8s/
▶️ Built-in Example Website
The image includes a ready-to-use Wagtail website example with homepage, blog, tags, and authors—just like a completed Wagtail quickstart.
The example project is always available inside the container at /app/examples/your-first-wagtail-site/, even if you mount a volume over /app/data.
To run the example directly (no need to copy anything), use:
bashdocker run -d --name wagtail \ -v $PWD/app/data:/app/data \ -e DJANGO_SECRET_KEY=your-secret \ -e DJANGO_SUPERUSER_USERNAME=admin \ -e DJANGO_SUPERUSER_EMAIL=admin@example.com \ -e DJANGO_SUPERUSER_PASSWORD=supersecret \ -e PROJECT_NAME=mysite \ -e DEST_DIR=/app/examples/your-first-wagtail-site \ -p 8000:8000 \ mrcolorrain/wagtail:latest
To start a new project based on the example, copy it out:
bash# From inside the running container: cp -r /app/examples/your-first-wagtail-site /app/data/my-new-site # Or from the repo: cp -r app/examples/your-first-wagtail-site app/data/my-new-site
Then set DEST_DIR to your new path.
You can also run the example locally with Python for development:
bashcd app/examples/your-first-wagtail-site pip install -r ../requirements.txt python manage.py migrate python manage.py createsuperuser python manage.py runserver 0.0.0.0:8000
Change the project name or data directory using environment variables (PROJECT_NAME, DEST_DIR).
Use your own database and add your desired plugins by overriding settings or mounting a custom config.
Extend the image by creating your own Dockerfile based on mrcolorrain/wagtail.
If you find this project helpful, please leave a star ⭐ or contribute to the repository.
Your support is greatly appreciated!
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务