Urgent.News

What's breaking now, across thousands of outlets.

Tech

Run YunCMS with Docker Compose: MySQL 8.4 Included

Disclosure: YunCMS is developed and maintained by Yunsoft Software. This guide covers our own open-source project. It was verified against yunsoftofficial/yuncms:0.1.22 on September 12, 2026. The YunCMS 0.1.x line is pre-stable, so interfaces and behavior may change between releases. You may not want to prepare the right Node.js version, npm and a separate MySQL server just to evaluate a…

This guide explains how to run the YunCMS open-source content management system using Docker Compose. YunCMS includes MySQL 8.4 for data storage and runs the CLI, REST API, and React Studio all within the same container image. The Docker Compose configuration creates two services, MySQL and YunCMS, along with two persistent volumes: mysql-data for MySQL tables and yuncms-data for project settings and files.

To get started, ensure you have Docker Engine with Compose plugin or Docker Desktop installed. For production deployments, additional persistent storage and a reverse proxy terminating TLS may be required. Check the required Docker version and ensure the necessary Node.js and npm tools are already inside the YunCMS image.

Download the official Compose files to an empty directory and create a .env file to set strong passwords for the database and root user. Pin a specific YunCMS image version in the .env file to avoid automatic updates. Start MySQL first using docker compose up -d mysql and verify its health status. Initialize YunCMS with the init command, providing the necessary database credentials from the .env file.

Once initialized, start the YunCMS service and verify its readiness using the health and ready endpoints. The image health check will only mark the container as healthy when MySQL and other dependencies are available. Never commit the .env file to version control, as it contains sensitive passwords and configuration.

To stop the YunCMS service without losing data, use docker compose stop yuncms. For backups, create a backup before maintenance by stopping the YunCMS service, running a backup command, and copying the backup files to an external location. When updating to a new YunCMS version, stop the service, create a backup, update the YUNCMS_IMAGE version in the .env file, pull the new image, and start the service again. Verify the updated installation by checking the health status, login, and file permissions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

T-Mobile Is Charging $5/Month for iPhone Handoff

T-Mobile, in their iPhone 18 Pro / iPhone Duo press release: Plus, T‑Mobile is one of the first to support Apple’s new iPhone Handoff feature, where customers with two compatible iPhone models can use…

  • T-Mobile charging $5/month for iPhone Handoff feature
  • Allows seamless switching between two compatible iPhones
  • Feature available on iPhone 18 Pro and iPhone Duo

More from Saturday 12 September →