As someone who deeply understands the 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 comprehensive and easy-to-follow guide.Deploying AnQi CMS is an important starting point, and using Baota panel combined with Docker technology, no doubt will make 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 Anqi CMS.


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

AnQi CMS is an enterprise-level content management system developed based on the Go language, known for its efficiency, security, and scalability, and is becoming the preferred choice for an increasing number of small and medium-sized enterprises and content operation teams.To fully utilize the performance advantages of Anqi CMS and ensure the convenience 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 for Baota panel and enabling Docker service

First, make sure that the Baota panel is properly installed 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 on the Baota official website.The installation process of Baota panel is usually very direct, just copy and execute the provided Linux panel installation script.If you encounter any questions during the installation process, the customer support on the Baota website can provide you with timely help.

After the Baota 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 Docker service.Click "Install Now" without hesitation, and let the Baota panel 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 the Safe CMS.

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

The AnQi CMS requires a stable database to store content and configuration information.In the Docker environment, we also recommend using Docker version of MySQL.After the Docker service is installed, go back to the Docker app store in Baota panel.You can enter "mysql" in the search box to search.Choose the appropriate MySQL version based on your server resources.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.Be sure to check the 'Allow External Access' option during the installation process, as this is crucial for the Safe CMS to connect to the database.

After installing the MySQL Docker container, click on the 'Details' link, and you will see the root user password for the database.Please make sure to copy and keep this password safely, as it is essential information when installing AnQi CMS later.Having the correct database credentials is the prerequisite for ensuring that the safe CMS can be initialized and run normally.

Deploying AnQi CMS Docker container

After completing the preparation of Docker services and MySQL database, you can proceed to install Anqin CMS next.Continue searching for "anqicms" in the Docker app store of the Baota panel.In the search results, click the 'Install' button next to the AnQi CMS entry to enter the installation configuration interface.

In this interface, you need to fill in several key pieces of information. First, enter the domain name you plan to use to access the Anqi CMS, for examplewww.anqicms.com. Then is the database name, usuallyanqicmsIf 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 want to install multiple security CMS, each instance requires a different server port, such as 8002, 8003, etc., but the port inside the container remains 8001.After filling in, click the "OK" button. The system will start to automatically pull the Anq CMS image and create a container.This process also takes some time, usually between 1 to 5 minutes.

Configuration of reverse proxy site (optional, but strongly recommended)

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

Go to the "Website" menu on the Baota panel, click the "Create Website" button, and select the "Reverse Proxy" type. Enter the domain name you previously configured for Anqi CMS in the main domain field, for example,test.anqicms.comFill in the proxy address.127.0.0.1:8001If you have set a different port for AnQi CMS before, please enter the corresponding port number here.After configuration is complete, click "Confirm", the Baota panel will automatically generate the Nginx reverse proxy configuration, redirecting your domain requests to the Anqi CMS service inside the Docker container.

Start and use Anq CMS.

All installation and configuration work is basically completed up to this point. You can now enter the domain name you have set in your browser (for examplehttp://test.anqicms.com/),Access the new Anqi CMS site. During the first visit, the system will guide you through the initialization installation process, creating a website administrator account and password.After the installation is complete, you can start managing and publishing content.

The Anqi CMS backend management interface is usually accessed by adding to your domain/system/such as the pathhttp://test.anqicms.com/system/. The default administrator account isadmin, and the default password is123456. After the first login, it is strongly recommended that you immediately change these default credentials to ensure website security.

By deploying the Anqie CMS through Docker containerization, you not only enjoy the convenient management brought by Baota panel, but also obtain many advantages such as environmental isolation, quick deployment, and easy maintenance provided by Docker technology.Now, your security CMS is ready and you can start creating great content to attract and retain your readers!


Frequently Asked Questions (FAQ)

Ask: After installing AnQi CMS, why can't the website be accessed through the domain name? Answer:In this situation, first check if the domain resolution is correct, make sure that your domain has pointed to the server's IP address. Secondly, confirm that the reverse proxy rules configured for AnQi CMS in the Baota panel are effective, the proxy address is usually127.0.0.1:8001) And the port is consistent with the port actually running in the Docker container.Finally, check the server firewall or security group rules to ensure that ports 80/443 and the internal ports used by the security CMS Docker container (such as 8001) are open to external access.

How do I handle the situation where I cannot find the AnQiCMS image in the Docker app store on the Baota panel? Answer:If you cannot search for AnQiCMS in the Docker app store, it may be due to the mirror source of Baota panel not being updated in time or there may be regional access restrictions.You can try to manually create a container in the Docker container management interface.Click "Create Container", enter the nameanqicmsSelect manual input for the mirror and fill in the official image name.anqicms/anqicms:latest. Port mapping maps the server port (such as 8001) to the container port 8001, and configures other necessary parameters, such as mounted volumes, etc.Later, manually create a reverse proxy to access through the domain name.

Ask: I forgot the root password set when installing MySQL, now I can't 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 Baota panel.Find the MySQL container you have installed, click on its 'Details' or 'Settings' option, usually there will be a 'Reset Password' or similar feature entry.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.