As an operator who deeply understands the way of security CMS and knows that the core of website operation lies in providing clear and valuable content to users, I understand that you hope to obtain a detailed and easy-to-follow guide.Deploying A CMS is an important starting point, and using Baota panel combined with Docker technology, undoubtedly makes this process more efficient and secure.Below, I will detail how to install Docker service and its related dependencies on the Baota panel, so that you can smoothly deploy and run the security CMS.


Deploy Docker service and related dependencies on the Baota panel: the foundation of AnQi CMS

An enterprise-level content management system developed based on the Go language, AnQi CMS is becoming the preferred choice for an increasing number of small and medium-sized enterprises and content operation teams with its high efficiency, security, and ease of expansion.To fully utilize the performance advantages of AnQi CMS and ensure the ease and security of its deployment, we strongly recommend using Docker containerization technology and managing it on the popular Baota panel.This will provide you with a lightweight, isolated, and easy-to-maintain runtime environment.

Preparation of Baota panel and enabling Docker service

Firstly, make sure that the Baota Panel is installed correctly on your server.It is worth noting that the Docker deployment feature has certain requirements for the Baota panel version, and it is recommended that your Baota panel version be not lower than 9.2.0.If you have not installed Baota Panel or the version is too low, please install or upgrade according to the latest installation script provided by the Baota official website.The installation process of the Baota panel is usually very direct, simply copy and execute the provided Linux panel installation script.If you have any questions during the installation process, the customer support on Baota's official website can provide you with timely help.

The panel is installed, you need to enter the panel interface, find and click the "Docker" option in the left menu bar.When you first visit, the system will prompt you to install the Docker service.Please do not hesitate to click 'Install Now', allowing the Baota panel to automatically complete the deployment of the Docker engine.This process may take a few minutes, please be patient. Once the Docker service is installed, it will become the foundation for your containerized deployment of CMS.

Core dependency: Installation and configuration of Docker-based MySQL database

The CMS needs a stable database to store content and configuration information during operation.In the Docker environment, we also recommend using the Docker version of MySQL.After the Docker service is installed, go back to the Baota panel's Docker App Store.You can enter 'mysql' in the search box to search.Choose the appropriate MySQL version based on your server resource situation.If the server memory is less than 2G, it is recommended to choose MySQL 5.6 version to save resources; otherwise, the default 5.7 version is usually a good choice.During the installation process, make sure to check the 'Allow External Access' option, which is crucial for the CMS to connect to the database.

Deployment of the security CMS Docker container

Completed the preparation of Docker services and MySQL database, and then you can proceed to install the AnQi CMS.Continue searching for “anqicms” in the Docker application store on the Baota panel.In the search results, click the "Install" button next to the "Safe CMS" entry to enter the installation configuration interface.

In this interface, you need to fill in some key information. First, enter the domain name you plan to use to access the AnQi CMS at the "Website Domain" field, for examplewww.anqicms.com。接着是“Database Name”,默认通常是anqicmsIf you plan to deploy multiple security CMS instances on the same server, please set a unique database name for each instance.Then, paste the MySQL root password you previously copied in the "Database Password" field.The last is 'Port Settings', the default port is 8001.Similarly, if you need to install multiple security CMS, each instance requires a different server port, such as 8002, 8003, and so on, but the port within the container remains 8001.Completed after entering, click the "OK" button.The system will start automatically pulling the security CMS image and creating a container.This process also requires some time, usually completed within 1 to 5 minutes.

Reverse proxy site configuration (optional, but strongly recommended)

After the Docker container is created successfully, Safe CMS runs on the port you specified (such as 8001) by default, and through127.0.0.1:8001Access. To allow users to access your website normally through the domain name and to unify the port, you need to set up reverse proxy in the Baota panel.

Go to the "Website" menu in the "Tower Paneltest.anqicms.com. Proxy address should be filled in127.0.0.1:8001.If you have set a different port for Anqicms previously, please enter the corresponding port number here.After completing the configuration, click 'Confirm', the Baota panel will automatically generate the Nginx reverse proxy configuration, forwarding your domain request to the security CMS service inside the Docker container.

Start and use AnQi CMS

Up to this point, all installation and configuration work has been basically completed. You can now enter the domain name you set in your browser (for examplehttp://test.anqicms.com/Access the new English CMS site.When you first visit, the system will guide you through the initial installation process, creating a website administrator account and password.After installation is complete, you can start managing and publishing content.

The backend management interface of AnQi CMS is usually accessed by adding your domain name/system/path, for examplehttp://test.anqicms.com/system/. The default administrator account isadminThe default password is123456The first time you log in, it is strongly recommended that you immediately change these default credentials to ensure website security.

Deploying the security CMS through Docker containers not only gives you the convenience of Baota panel management, but also provides many advantages such as environment isolation, rapid deployment, and easy maintenance that Docker technology offers.Now, your CMS is ready, and you can start creating amazing content to attract and retain your readers!


Common Questions and Answers (FAQ)

问:After installing AnQi CMS, why can't the website be accessed via the domain name? Answer:Encounter this situation, the first thing to check is whether the domain resolution is correct, make sure that your domain has pointed to the IP address of the server. Next, confirm that the reverse proxy rules configured for AnQi CMS in the Baota panel are effective, the proxy address (usually127.0.0.1:8001

Question: How do I solve the problem of not being able to find the AnQiCMS mirror in the Docker application store on Baota panel? Answer:If AnQiCMS cannot be found in the Docker App Store, it may be due to the mirror source of Baota panel not being updated in time or there is a regional access restriction.You can try to manually create a container in the Docker container management interface.anqicmsMirror: Manually input and fill in the official mirror nameanqicms/anqicms:latest.Port forwarding maps the server port (such as 8001) to the container port 8001, and configures other necessary parameters, such as mounted volumes.Then, manually create a reverse proxy to access via domain name.

问:I forgot the root password I set when installing MySQL, and now I cannot connect to the database to install AnQiCMS what should I do? Answer:If you forget the MySQL root password, you can reset it through the Docker management interface of the Baota panel.Find the MySQL container you have installed, click its "Details" or "SettingsPlease follow the instructions to reset the root password.After the reset is complete, please try to install AnQiCMS again with the new password and remember the new password.