Skip to content
Projects

About

ZrLog is an open-source blogging system based on Java. It includes posts, categories, tags, comments, themes, plugins, static generation, and online upgrades. It also has a built-in Markdown editor and an admin interface built with React and Ant Design.

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en-us.md

Original

ZrLog packages Apache License

Chinese | English

ZrLog is an open-source blog system built with Java. It provides article, category, tag, comment, theme, plugin, static page generation, and online update features. It includes a Markdown editor, and its admin UI is built with React and Ant Design.

Homepage

https://www.zrlog.com

Previews

Article Detail Page

Article Edit Page

Article Edit Page [Dark Mode]

Article Edit Page [PWA Full Screen]

Article Edit Page [PWA Full Screen - Settings]

Features

  1. Content Management: Manage articles, categories, tags, and comments.
  2. Plugin Extensions: Extend features through plugins (How to write a plugin) and connect third-party comment services.
  3. Themes: Customize and switch blog themes (How to create a custom theme).
  4. Article Editing: Use the built-in Markdown editor for common writing and preview workflows.
  5. Access Optimization: Generate static pages and cache shared public data.
  6. Deployment Options: Use Native/Zip + SQLite or Docker Compose + MySQL as the recommended paths; AWS Lambda + Cloudflare D1 is the advanced path, and WAR container deployment remains supported.
  7. Operations: Use scheduled database backups and online updates.

Development

See AGENTS.md for development and verification conventions.

Installation & Deployment

  • Quick trial: Docker

    Start the service and persist the config directory:

    docker run -p 8080:8080 -v $(pwd)/conf:/opt/zrlog/conf zrlog/zrlog
    

    Then visit http://localhost:8080/install. The installer checks config paths, database connectivity, and the install lock, then shows installation progress while it runs. The installation token is disabled by default to keep first-time setup simple. After a successful setup, install.lock prevents another installation. An uninstalled instance exposed directly to the public Internet can still be initialized by someone else; set ZRLOG_INSTALL_TOKEN explicitly before startup for public or unattended deployments. See the installation guide for deployment-specific configuration. To start ZrLog together with MySQL, follow the Docker Compose guide.

  • Recommended and advanced deployment

    • Recommended for personal or local use: Native/Zip + SQLite. Native Image packages include the runtime; Zip requires JDK >= 11.
    • Recommended for servers: Docker Compose + MySQL. The official Compose configuration includes MySQL, health checks, and persistent volumes.
    • Advanced path: AWS Lambda + Cloudflare D1. Use a Linux FaaS package and connect to D1 through WebApi.
    • For Zip packages, download the latest package, extract it, and run bin/start.sh or bin/start.bat on Windows.
    • Before installation, upgrade from the installer or run ./zrlog upgrade for Native Image and java -jar zrlog-starter.jar upgrade for Zip packages. upgrade is a subcommand, not --upgrade.
    • WAR remains supported for deployments with an existing Tomcat / Jetty container and external database.
    • For Docker, make sure /opt/zrlog/conf is mounted to persistent storage; db.properties and install.lock are written there.
    • After installation, enter admin and create your first article.

Changelog

View the complete changelog

Demo

Support

FAQ

Docker setup still fails after entering the correct database information

  • Check container networking, the database address, and mounted directories first. More troubleshooting steps are available in the FAQ.

Other questions

See the FAQ.

Open-Source Acknowledgments

License

ZrLog is Open Source software released under the Apache 2.0 license.

Explore related projects

Loading…