HUB
Sign inSign up

pollybird/zhycms

By pollybird

•Updated about 19 hours ago

Python/Flask enterprise CMS: multi-site, plugins, RBAC, OpenAPI, webhooks. Mulan PSL v2.

Image
Content management system
0

2.2K

pollybird/zhycms repository overview

⁠ZhyCMS

A lightweight, open-source enterprise CMS built with Python / Flask. Designed as a modern alternative to traditional PHP CMSs for building corporate websites: plugin-based extensions, switchable themes, fine-grained RBAC, content workflow, audit logs, SEO-friendly URLs, object storage, and one-command Docker deployment.

Current release: v3.3.4 (bug fixes and site-group enhancements). This release fixes timeouts when publishing long Markdown content and false-positive subdomain conflicts, and allows one site to bind multiple independent domains. The release notes also cover v3.3.1–v3.3.3 (KingbaseES V9, Dameng DM8 and PolarDB for PostgreSQL 15 support).

⁠License — important change

  • v3.2.6 and earlier: Apache License 2.0⁠.
  • v3.2.7 and later (including this image): Mulan PSL v2⁠ (Mulan Permissive Software License v2), a permissive license that allows free commercial use, modification and redistribution.

Pulling or using latest / v3.3.4 means you accept Mulan PSL v2. If you need Apache 2.0, stay on the v3.2.6 tag. Third-party components keep their own licenses (e.g. CKEditor 5 is GPL-2.0-or-later or a CKSource commercial license; Bootstrap / jQuery / AdminLTE are MIT; Font Awesome Free is CC BY 4.0 / SIL OFL 1.1 / MIT). See LICENSE, LICENSE-APACHE-2.0 and THIRD_PARTY_NOTICES in the source repository for the full texts and required attributions.

⁠Image tags

TagPurpose
latestLatest stable release (currently v3.3.4)
v3.3.4Immutable release tag for v3.3.4
mysqlSame image, for the MySQL 8.4 compose stack
postgresqlSame image, for the PostgreSQL 16 compose stack
opengaussIncludes the official openGauss 7.0 Python driver
polardbIncludes PostgreSQL 15 client tools for PolarDB for PostgreSQL

All tags are multi-architecture images for linux/amd64 (x86_64) and linux/arm64 (aarch64). Images are built from python:3.12-slim and run gunicorn with a non-root user (uid 1000). SQLite, MySQL and PostgreSQL are supported by the standard image; openGauss, KingbaseES V9, Dameng DM8 and PolarDB for PostgreSQL 15 are also supported. Select the database via environment variables or the installer.

⁠Features

  • Multi-site (site group): one instance + one database serves multiple independent sites, resolved by domain/subdomain; multiple domains per site and domain-scoped subdomains; per-site themes, settings, content and metrics
  • Content management: columns, articles, fragments, custom fields, workflow (draft / review / published / archived), version snapshots and rollback
  • Visual page builder, multiple themes, multi-language content, full-text search
  • RBAC with site- and column-level grants, login protection, security audit logs
  • Content API: OpenAPI 3.0 contract (/api/v1/openapi.json), optional JWT-only write endpoints (disabled by default), official Python SDK
  • Webhooks: signed (HMAC-SHA256) event delivery with retries, idempotency keys and SSRF protection
  • Operations: site backups/export/import, SSL expiry checks, rate limiting, Redis-backed multi-worker scheduling, health checks; incremental Redis cache purging avoids full-cache flushes during content publishing
  • Storage: local uploads or object storage (S3-compatible / OSS), image processing

⁠Quick start

⁠Try it with SQLite
docker run -d --name zhycms \
  -p 5000:5000 \
  -v zhycms_instance:/app/instance \
  -v zhycms_uploads:/app/app/static/uploads \
  pollybird/zhycms:latest

Open http://localhost:5000 and follow the installer.

git clone https://github.com/pollybird/zhycms.git
cd zhycms
docker compose -f docker-compose.mysql.yml up -d

The compose file pulls pollybird/zhycms:mysql, starts MySQL 8.4, and runs database migrations automatically on startup. PostgreSQL 16 is available via docker-compose.postgresql.yml; openGauss, KingbaseES, Dameng and PolarDB compose files and deployment guides are included in the source repository.

For multi-process / multi-instance deployment (Redis leader election, scheduled jobs, view counters), see docs/DEPLOY_MULTI_SITE.md in the repository.

⁠Notes

  • Persistent data lives in /app/instance (SQLite DB, cache, backups, search index) and /app/app/static/uploads; mount both as volumes.
  • The container starts as root only to fix volume ownership, then drops to uid 1000 via gosu.
  • Health check: GET /healthz returns {"status":"ok"}.

Tag summary

Content type

Image

Digest

sha256:935ed52e3…

Size

232 MB

Last updated

about 19 hours ago

docker pull pollybird/zhycms