As an experienced website operations expert, I am well aware of the importance of an efficient, secure, and easy-to-manage content system for enterprises.AnQiCMS (AnQiCMS) boasts a high-performance architecture based on the Go language, providing an excellent content management experience while also winning the favor of many users with its flexible deployment method.Today, let's delve deeply into how to use 1Panel, aaPanel (Baota International Edition), and Baota Panel, these popular server management tools, to quickly and stably deploy AnQiCMS through Docker containerization technology.
The advantage of Docker lies in its ability to provide an independent, portable runtime environment for applications, greatly simplifying the deployment process, avoiding complex dependency conflicts, and is particularly suitable for enterprise users pursuing efficiency and stability.
Preparation before deploying AnQiCMS
Before starting the deployment of AnQiCMS, no matter which panel you choose, there are several common basic tasks to be done:
- Prepare a server:Ensure that your server meets the basic hardware requirements and has installed your preferred Linux operating system (such as Ubuntu, CentOS, etc.).
- Domain resolution:Point the domain name you have prepared for the AnQiCMS site to the IP address of the server.
- Install the server management panel:Install 1Panel, aaPanel, or Baota panel in advance according to your choice.
- Install Docker environment:These three panels all provide a convenient installation entry for the Docker environment, please make sure to install Docker in advance.
- Database and reverse proxy:AnQiCMS needs database storage data (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 also be quickly installed through the app store on the panel.
The AnQiCMS Docker image is unified asanqicms/anqicms:latestRunning by default inside the container,8001Port. The core idea of the next deployment steps is to start the AnQiCMS container and configure your domain to point to this through reverse proxy8001on the port.
Deploy AnQiCMS easily through 1Panel
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.cnInstall according to the official instructions. 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).
Second step: Create a Docker containerNow, let's create a Docker container for AnQiCMS.
- Click the 'Container' menu on the left navigation bar and switch to the 'Container' tab.
- Click the 'Create Container' button.
- In the popped-up interface, fill in a container with anameFor example
anqicms. - InMirrorIn the options, select 'Manual input' and then enter in the input box
anqicms/anqicms:latest. - The focus is onPort settings. Click 'Expose Port', enter the server port and container port both
8001. If you plan to deploy multiple AnQiCMS instances on a single server, remember to select different server ports for subsequent instances (such as 8002, 8003), but keep the container port consistent.8001Unchanged. - Continue scrolling down, select 'Restart on failure' or 'Restart if not manually stopped' under 'Restart Policy' to ensure stable service operation.
- After confirming that everything is correct, click "Confirm" to complete the container creation.
Step 3: Configure the reverse proxy siteAfter the container is created, we need to associate your domain with the AnQiCMS container.
- Click on 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 example
test.anqicms.com. - InProxy addressEnter
127.0.0.1:8001. Here127.0.0.1point to the local server,8001Then is the server port exposed for the AnQiCMS container we mentioned above.If you have set different server ports for multiple AnQiCMS containers, you also need to fill it 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.
Step 1: Install aaPanel and Docker (if needed)If you have not installed aaPanel yet, 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.
Step 2: Install AnQiCMS through the app storeaaPanel provides a convenient one-click deployment method for 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 yourDomainfor example
yourdomain.com),andPortis set to8001. - Click “Confirm” to start the installation. This process may take 1-5 minutes, please be patient.
- If an error occurs during the one-click installation, it will usually prompt.You can try to troubleshoot according to the error message, or follow the "manual configuration of reverse proxy" method in the next section.
Step 3: 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 complete the following steps manually:
- Select 'Website' from the left menu on the aaPanel dashboard.
- Click “Add Site” to add a new website, select “Reverse Proxy” as the type.
- Fill in yourDomain.
- Enter in “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 visitDownload from bt.cn/new/download.htmlDownload and install. After installation, log in to the panel.
- Click on the "Docker" menu on the left, if you don't see it, go to "Panel Settings" -> "Panel Menu Hide" to turn on Docker display.
- First time entering the Docker interface will prompt to install Docker, click "Install immediately".
- Continue, search and install in Docker's 'App Store'MySQL(Recommended version 5.7, if the server memory is less than 2G, version 5.6 is optional).Be sure to check "Allow external access". *