As an experienced website operations expert, I fully understand the importance of an efficient, secure, and easy-to-manage content system for enterprises.AnQiCMS (AnQiCMS) has won the favor of many users with its high-performance architecture based on the Go language, providing an excellent content management experience while also offering flexible deployment methods.Today, let's delve into how to quickly and stably deploy AnQiCMS by containerizing with Docker technology, using the popular server management tools such as 1Panel, aaPanel (Baota International Edition), and Baota Panel.

The advantage of Docker lies in providing an independent and portable runtime environment for applications, greatly simplifying the deployment process and avoiding complex dependency conflicts, especially suitable for corporate users pursuing efficiency and stability.


Deploying AnQiCMS Preparations

Before starting the AnQiCMS deployment, regardless of which panel you choose, there are several common fundamental tasks to be done:

  1. Prepare a server:Ensure your server meets the basic hardware requirements and has the Linux operating system you prefer (such as Ubuntu, CentOS, etc.) installed.
  2. Domain resolution:Translate you prepared domain name for AnQiCMS site to the server's IP address.
  3. Install the server management panel:According to your choice, install 1Panel, aaPanel or Baota panel in advance on the server.
  4. Install Docker environment:These three panels all provide a convenient installation entry for the Docker environment, please make sure to install Docker in advance.
  5. Database and reverse proxy: AnQiCMS needs a database storage (recommended MySQL) and a reverse proxy service (such as Nginx or OpenResty) to forward domain requests to the Docker port where AnQiCMS is running.These can usually be installed quickly through the app store on the panel.

AnQiCMS's Docker image is unified asanqicms/anqicms:latestand the container runs by default in8001Port. The next deployment steps, the core idea is to start the AnQiCMS container, and configure your domain name through reverse proxy to point to this8001port.


Through 1Panel easily deploy AnQiCMS

1Panel, with its simple user interface and powerful feature integration, has become a new favorite of many system administrators.

First step: Install 1Panel and necessary componentsIf you have not installed 1Panel yet, please visit1panel.cnFollow the official instructions to complete the installation. After installation, log in to the 1Panel dashboard, find and install it in the "App Store".OpenRestyand as a reverse proxy.MySQL(As a database service).

Step 2: Create Docker containerNow, let's create the Docker container for AnQiCMS.

  • Click the "Container" menu on the left navigation bar to switch to the "Container" tab.
  • Click the "Create Container" button.
  • In the pop-up interface, fill in a containerNamefor exampleanqicms.
  • InImageIn the option, select "Manual input" and then enter in the input boxanqicms/anqicms:latest.
  • The key point isPort settings. Click "Expose Port", and fill in both the server port and container port8001。If you plan to deploy multiple AnQiCMS instances on a single server, remember to select a different server port for subsequent instances (e.g., 8002, 8003), but keep the container port consistent.8001No change.
  • Continue scrolling down, select "Restart policy" and choose "Restart after failure" or "Restart if not manually stopped" to ensure stable service operation.
  • Confirm after checking, then click “Confirm” to complete the container creation.

Step 3: Configure reverse proxy siteThe container has been created successfully, and we need to associate your domain with the AnQiCMS container.

  • Click the "Website" menu in the left navigation bar and select the "Website" tab.
  • Click the "Create website" button and select the "Reverse proxy" type.
  • InMain DomainEnter your domain name, for exampletest.anqicms.com.
  • InProxy addressEnter127.0.0.1:8001.127.0.0.1point to the local server,8001This is the server port exposed by the AnQiCMS container as mentioned above.If you have set different server ports for multiple AnQiCMS containers, you also need to fill in here.
  • Finally, click "Confirm" to complete the creation of the site.

Deploy AnQiCMS on aaPanel/Baota International Edition

aaPanel as the international version of Baota Panel, has similarities in operational logic with Baota Panel, but its Docker app store integration is more direct.

First step: Install aaPanel and Docker (if necessary)If you have not installed aaPanel, please visitaapanel.comGet the installation script and execute it.After installation, log in to the aaPanel dashboard, find "App Store" in the left menu, search and install Docker.

第二步:通过应用商店安装 AnQiCMSaaPanel 提供了一键部署 AnQiCMS 的便捷方式。

  • Search for "AnQiCMS" in the "App Store".
  • Click the "Install" button next to AnQiCMS in the search results.
  • In the installation configuration interface, fill in yourDomain[for example]yourdomain.com), and willPortset8001.
  • Click "Confirm" to start the installation. This process may take 1-5 minutes, please be patient.
  • If an error occurs during the one-key installation process, it will usually provide a prompt.You can try to troubleshoot based on the error message, or solve it by following the "Manual Configuration of Reverse Proxy" in the next section.

Third step: Manually configure reverse proxy (optional, in case one-click installation fails)If the one-click installation fails to configure the reverse proxy as mentioned above, you can manually complete the following steps:

  • In the aaPanel left menu, select “Website”.
  • Click "Add Site" to add a new website, select "Reverse Proxy" as the type.
  • Fill in your informationDomain.
  • Enter in the "Target URL"http://127.0.0.1:8001.
  • Click “Submit” to complete the configuration.

Deploy AnQiCMS using the Baota panel

The Baota panel has a wide user base in China, and its Docker management function is also powerful.Please note that the Docker deployment feature performs better in Baota panel version 9.2.0 and above.

Step 1: Install Baota panel and Docker version MySQLIf you have not installed Baota Panel yet, please visitbt.cn/new/download.htmlDownload and install. Log in to the panel after installation.

  • Click the "Docker
  • First time entering the Docker interface will prompt to install Docker, click 'Install Now'.
  • Then, search for and install in Docker's 'App Store'MySQL(Recommended version 5.7, optional 5.6 if the server memory is less than 2G).Ensure that 'Allow external access' is checked.