How to use Docker to install and deploy AnQiCMS on 1Panel?

Calendar 👁️ 108

As a senior website operator, I am well aware of the importance of an efficient and easy-to-manage content system for both enterprises and individual operators.AnQiCMS (AnQiCMS) is an ideal choice for many users seeking stable, flexible content solutions with its high-performance, modular design based on the Go language and rich built-in features.It not only deploys easily, has a beautiful interface, but also performs excellently in terms of security and SEO-friendliness, and can well meet the content management needs of corporate websites, marketing websites, and even personal blogs.

Today, I will guide you step by step on how to quickly install and deploy AnQiCMS using Docker container technology on the 1Panel panel, allowing you to easily set up your own website.

Start the Docker deployment journey of AnQiCMS

Before starting the installation of AnQiCMS, we need to ensure that your 1Panel panel has been successfully installed and running.If you have not installed 1Panel yet, please refer to the instructions on its official website.In the 1Panel app store, we also need to ensure that the necessary supporting software is installed, such as OpenResty and MySQL.These are the web server and database environment required for AnQiCMS to run.

Create AnQiCMS container on 1Panel

The first step to install AnQiCMS is to create its Docker container in 1Panel.We first need to log in to your 1Panel management interface and click on the 'Container' option in the left menu bar.On the container management page, switch to the "Container

In the new pop-up window, you need to specify a name for this AnQiCMS instance, for example, "anqicms". In the image selection section, select "Enter manually", and then enter the official Docker image address of AnQiCMS:anqicms/anqicms:latest. This is the key to obtaining the latest stable version of AnQiCMS.

Next, it is the port settings. The AnQiCMS Docker container is set to use internally by default.8001Port. Therefore, in the 'Port' settings, select 'Expose Port' and fill in both 'Container Port' and 'Server Port' with8001It is worth noting that if you plan to deploy multiple AnQiCMS instances on the same server, the server port for each instance must be unique, for example8002/8003But the "container port" still remains8001Unchanged.

Continue scrolling down, in the "Reboot RulesAfter completing the above configuration, click the "Confirm" button, 1Panel will start creating the Docker container for AnQiCMS.

Configure reverse proxy site

After the container is successfully created, in order for external users to access your AnQiCMS website through a domain name, we still need to set up a reverse proxy in 1Panel.Reverse proxy can forward external HTTP requests to the AnQiCMS service running inside the Docker container we just created.

Please go back to the 1Panel management interface, click the 'Website' option in the left menu bar, then switch to the 'Website' tab, and click the 'Create Website' button.In the pop-up selection of website type creation, select "Reverse Proxy".

On the reverse proxy configuration page, you need to fill in the domain name you want to use to access the AnQiCMS website in the "Main Domain" field, for exampletest.anqicms.com. Then, fill in the "Proxy Address".127.0.0.1:8001. Here,8001It is the "server port" you set when creating a Docker container. If you have assigned a different server port for the AnQiCMS instance (such as8002Please fill in the corresponding port number here.

Check all information is correct and then click the "Confirm" button to complete the creation of the reverse proxy site.Now, your AnQiCMS website can be accessed via the domain you have set.

Website initialization and background access

After all deployment work is completed, it's time to launch your AnQiCMS website. Enter the domain name you have previously configured in your browser (for examplehttp://test.anqicms.com/),You will see the initial installation interface of AnQiCMS. Please follow the page prompts to complete the database configuration, administrator account setup, and other steps.

After installation, your website will be up and running. To access the AnQiCMS admin interface, simply add your domain name followed by/system/The path is sufficient. For example, if your website domain ishttp://test.anqicms.com/then the back-end access path ishttp://test.anqicms.com/system/. During the first login, please use the default administrator account and password (usuallyadminand123456), and modify these default credentials immediately to ensure website security.

Deploying AnQiCMS through the combination of Docker and 1Panel becomes extremely simple and efficient, allowing you to focus more energy on content creation and operation, fully leveraging the advantages of AnQiCMS in multi-site management, flexible content model, SEO optimization, and helping your website achieve success.


Frequently Asked Questions (FAQ)

How to install multiple AnQiCMS instances on the same 1Panel server?

It is completely feasible to install multiple AnQiCMS instances on the same 1Panel server.The key is to assign different 'server ports' to each instance.When creating a new Docker container, ensure that each AnQiCMS container is mapped to a unique server port (for example, the first is 8001, the second is 8002, and so on).Next, configure a separate domain for each AnQiCMS instance and set the proxy address to the corresponding "127.0.0.1:server port" in its reverse proxy settings.Such that each domain can independently access its corresponding AnQiCMS instance.

2. What are the default username and password after the AnQiCMS installation?

AnQiCMS will set up a set of default backend login credentials after the first installation and initialization is successful. In most cases, the default administrator account isadmin, and the default password is123456It is strongly recommended that you change these default account and password immediately after your first login to the backend to enhance the security of the website.

3. If the AnQiCMS website cannot be accessed after visiting the domain name, how should I troubleshoot the problem?

When the AnQiCMS website cannot be accessed through the domain name, you can troubleshoot the following steps:

  • Check the status of the Docker container:Log in to 1Panel, enter the 'Container' management page, and confirm that the AnQiCMS container is running.If the container is not running, try to start it and check the log output for any error messages.
  • Check port occupancy:Ensure that the "server port" allocated to the AnQiCMS container is not occupied by other services. You can check the port usage in 1Panel or directly use the command on the server (such asnetstat -tulnp | grep 端口号Check for errors.
  • Check the reverse proxy configuration:Confirm that the reverse proxy rules set in 1Panel are correct, especially the domain spelling and proxy address(127.0.0.1:服务器端口Does it match your Docker container configuration?
  • Check the firewall settings:Ensure that the firewall (or security group of your cloud service provider) has opened the corresponding HTTP/HTTPS ports (usually 80 and 443), as well as the 'server port' of your AnQiCMS container.
  • Domain resolution:Confirm that your domain has been correctly resolved to the server's IP address. You can useping 您的域名ornslookup 您的域名commands to verify the domain resolution status.

Related articles

What should I do if I encounter port occupation problem during AnQiCMS installation?

As a website operator who has been deeply involved in AnQiCMS for many years, I know that even a small technical detail can become a stumbling block for users to successfully go online.Among them, port occupation problems are typical scenarios often encountered when initially installing or expanding AnQiCMS.Today, let's delve into how to efficiently identify and resolve port occupation issues when installing AnQiCMS.Understanding Port Usage Problem First, let's understand what port usage is.In network communication

2025-11-06

How do MacOS users install and test AnQiCMS?

As an experienced enterprise CMS website operator, I know the importance of content management systems for enterprises and self-media.AnQiCMS stands out among many CMS systems for its efficiency, flexibility, and security.For MacOS users, the simple deployment process makes local development and testing particularly convenient.Now, I will give you a detailed introduction on how to install and test AnQiCMS on MacOS.

2025-11-06

How to safely stop or close the AnQiCMS program running on Windows?

As an experienced website operator who deeply understands the operation of security CMS, I am fully aware of the importance of program security, stable operation, and the ability to stop safely when necessary.Whether it is for system maintenance, version upgrade, or daily development and testing, correctly shutting down the AnQiCMS program is a critical step to ensure data integrity and system stability.Under Windows operating system environment, stopping or closing the AnQiCMS program is usually a direct process.Because AnQiCMS is an independent executable file developed based on the Go language

2025-11-06

How to perform local development and testing of AnQiCMS in Windows environment?

As an operator who is deeply familiar with the operation of AnQiCMS, I fully understand the importance of sufficient local development and testing before formal launch to ensure the quality of website content, user experience, and system stability.Set up an efficient AnQiCMS local development environment under the Windows environment, which allows you to freely create, edit, publish, and optimize content, while also performing various function tests, thereby greatly improving work efficiency.The following will elaborate on how to carry out local development and testing of AnQiCMS in a Windows environment.###

2025-11-06

How to set up port mapping and reverse proxy for AnQiCMS Docker container in Panel?

As an experienced senior CMS website operation person, I know the importance of efficient deployment and stable operation for any content management system.In the modern web environment, Docker container deployment is favored for its convenience, isolation, and portability.A strong and flexible content management platform can be provided for you by combining Anqi CMS with Docker.This article will elaborate on how to set up port mapping and reverse proxy for the AnQiCMS Docker container in the Panel environment, ensuring that your website can be accessed smoothly.

2025-11-06

How to deploy AnQiCMS Docker application with aaPanel one-click?

As an experienced CMS website operation person in an enterprise, I am well aware of the importance of an efficient and stable content management system for both enterprises and individual operators.AnQi CMS, with its high concurrency characteristics of the Go language, concise architecture design, and in-depth optimization for SEO, has become the preferred choice for many small and medium-sized enterprises and self-media teams.

2025-11-06

How to manually configure reverse proxy after AnQiCMS Docker deployment fails on aaPanel?

In the daily operation of AnQiCMS, we deeply understand that stable and efficient content release is the foundation of success.When you try to deploy AnQiCMS through Docker in the aaPanel environment, you may occasionally encounter a situation where the automated reverse proxy configuration fails.This is usually not a fatal problem, but requires us to manually intervene and calibrate the configuration to ensure that AnQiCMS can provide normal external service through your domain.

2025-11-06

How to configure MySQL database when installing AnQiCMS via Baota panel Docker?

As a senior security CMS website operator, I know that a stable and efficient CMS system cannot do without the robust support of its underlying database.Deploying AnQiCMS in the Docker environment of Baota panel not only simplifies the installation process but also provides an isolated, secure, and easy-to-manage application environment.Properly configuring the MySQL database is undoubtedly a key step to ensure the normal operation and data security of AnQiCMS.

2025-11-06