As an experienced website operations manager, I am well aware of the importance of an efficient, stable, and easy-to-manage content management system (CMS) for corporate websites.AnQiCMS, with its lightweight and efficient features of the Go language, as well as its rich functional modules, has become the preferred choice for many small and medium-sized enterprises and content operation teams.In modern operations and maintenance environments, Docker containerization technology combined with a visual management panel like 1Panel can greatly simplify the deployment process and improve management efficiency.

Next, I will introduce to you how to easily install and deploy AnQiCMS using the powerful 1Panel in the Docker environment, so that your website can go online quickly.

Preparation for Docker deployment of Anqi CMS

Before deploying the AnQi CMS, we need to ensure that the server is already installed with the 1Panel management panel. If you have not installed 1Panel yet, please visit its official websitehttps://1panel.cn/Complete the installation process according to the provided detailed instructions. 1Panel provides a convenient graphical interface for Docker container management, making complex command operations intuitive.

In addition, the operation of AnQi CMS also requires a database service, usually MySQL is recommended.In the 1Panel app store, you can easily find and install the two necessary components, OpenResty and MySQL.OpenResty will serve as the foundation for our reverse proxy service, while MySQL provides the data storage for the secure CMS.

Create a secure CMS container with 1Panel

After completing the pre-configuration, we can start creating the Docker container for AnQi CMS.Log in to the 1Panel panel, navigate to the 'Container' section through the left-hand menu, select the 'Container' tab, and click the prominent 'Create Container' button.

In the pop-up creation interface, first name your Anqi CMS container, for example, you can fill in 'anqicms'. Next, select 'Manual Input' in the image configuration, and then type in the official Docker image address of Anqi CMSanqicms/anqicms:latestThis ensures that you are using the latest version of the Anqi CMS.

In terms of port settings, select 'Expose Port'. Both the server port and container port should be filled in8001Please pay special attention to the following, if your server plans to deploy multiple AnQiCMS instances, each instance needs to occupy a different server port, for example:8002/8003and, but the ports inside the container are always kept8001unchanged. This ensures the consistency inside the container, while different instances are distinguished by the host port.

Scroll down the page to find the restart rule settings.To ensure the continuous and stable operation of the service, we recommend selecting the 'Restart after failure' or 'Restart if not manually stopped' option.This way, even if the service is unexpectedly interrupted, Docker can automatically attempt to recover, reducing manual intervention.

Finally, click the 'Confirm' button, 1Panel will automatically complete the creation process of the AnQiCMS container. Please wait a moment, until the container status becomes running.

Configure reverse proxy to access the CMS through a domain name

After the container is created, we need to configure a reverse proxy for the Aiqi CMS so that it can be accessed via domain name instead of IP address and port number, which is crucial for SEO and user experience.

In the 1Panel left menu, click the "WebsiteIn the pop-up options, select the "Reverse Proxy" mode.

In the primary domain field, enter the domain name you wish to use to access the Anqi CMS, for exampletest.anqicms.com. Next, enter the proxy address127.0.0.1:8001.Similarly, if you have previously deployed multiple AnQiCMS containers and used different server ports, the proxy address here needs to be adjusted according to the actual server port allocated to the AnQiCMS container.

Confirm all settings are correct, then click the "Confirm" button to complete the creation of the reverse proxy site.At this time, 1Panel will automatically configure Nginx and other reverse proxy services, forwarding external domain requests to your AnQiCMS container's port 8001.

Initialize Anqi CMS and start operating your website

Now, all deployment work is ready. You can enter the domain name you previously set in the browser, for examplehttp://test.anqicms.com/The system will guide you to the initial installation interface of the AnQi CMS.In this interface, you need to configure database connection information, create an admin account and password, and set the basic information of the website.

After completing the installation steps, your security CMS website can be accessed normally. The access address of the backend management interface is您的域名/system/. For example, if your website domain ishttp://test.anqicms.com/Then the background access path ishttp://test.anqicms.com/system/After the first login to the background, please change the default administrator account and password to ensure the security of the website.

Congratulations! You did it!By following these steps, you have successfully installed and deployed AnQiCMS in the Docker environment.Now, you can fully enjoy the convenient content management experience brought by Anqi CMS, attracting and retaining your users by publishing high-quality content.


Common Questions and Answers (FAQ)

  1. How can I deploy multiple AnQiCMS website instances on the same server?The key to deploying multiple AnQiCMS website instances lies in assigning a different host port to each Docker container and configuring independent reverse proxies for each instance in 1Panel. For example, the port of the first instance container8001Mapped to the host machine8001Reverse proxy to127.0.0.1:8001; The second instance container port is still8001, but can be mapped to the host machine8002, and the reverse proxy points to127.0.0.1:8002So, different domains access their independent AnQiCMS containers via different host port numbers.

  2. What databases does AnQiCMS support?AnQiCMS mainly supports MySQL database.When deploying Docker, it is recommended to install the MySQL service from the 1Panel app store.To ensure compatibility and performance, it is recommended to use MySQL 5.6.35 or a higher version.

  3. What are the outstanding advantages of AnQiCMS in content management?AnQiCMS is committed to providing efficient, customizable, and easy-to-expand content management solutions.The highlights include multi-site management capabilities, allowing unified management of multiple independent sites; a flexible content model that can be customized to meet business needs; a comprehensive set of SEO tools such as static redirection, 301 redirection, Sitemap generation, keyword library management, etc., to help improve the website's search engine performance; in addition, it also supports multilingual, content collection and batch import, as well as powerful permission control and security mechanisms, providing comprehensive support for website operation.