As an experienced CMS website operation personnel in the cybersecurity field, I am well aware of the importance of efficient and stable deployment methods for our content team.The Anqi CMS, with its lightweight and efficient Go language, SEO-friendly, and rich enterprise-level features, has become our preferred choice for daily content management.When combined with modern server management panels such as 1Panel, deploying Ansible CMS through Docker can greatly simplify the installation and maintenance process.

The following will detail how to correctly fill in the Docker image name for AnQi CMS in 1Panel and complete the deployment.

Prepare before deploying AnQi CMS in 1Panel

Before starting the deployment of AnQi CMS, please make sure that your server has successfully installed the 1Panel panel.1Panel with its intuitive user interface and powerful functions brings great convenience to our server management.If it has not been installed, you can visit its official website for detailed installation instructions.

In addition to 1Panel itself, in order for the AnQi CMS to run smoothly and provide comprehensive functionality, we also need to install some necessary complementary software in the 1Panel app store.English: Typically, this includes OpenResty as a web server and MySQL as a database server.These are the key components for the normal operation of the content management system, please complete their installation in advance.

Fill in the AnQi CMS Docker image name and create a container

After completing the above preparation, we can start creating a Docker container for the Secure CMS in 1Panel.The core of this process lies in correctly specifying the Docker image name of the security CMS.

First, please log in to your 1Panel dashboard.In the navigation menu on the left, find and click the "ContainerHere, you will see a "Create Container" button, click it to start configuring a new container.

In the pop-up "Create Container" interface, there are several key pieces of information that we need to fill in carefully.In the "Name" field, you can enter a name of your preference that is easy to recognize, such as "anqicms".

Next, is the focus of this tutorial: specifying the Docker image. Please select the 'Manual input' option, and accurately enter the Docker image name of Aanq CMS in the input box that follows.anqicms/anqicms:latestThis name points to the latest stable version image maintained by AnQi CMS on Docker Hub, ensuring that the system we deploy is up to date.

In terms of port configuration, please select the 'Expose Port' option.In the "Server" and "ContainerThe Docker container of Anqi CMS runs on port 8001 by default, so the server port should also be mapped to this port for external access.If you plan to deploy multiple security CMS instances on the same server, please allocate a different server port for each subsequent instance (such as 8002, 8003, etc.), but keep the container port at 8001.

Continue scrolling down, in the 'Restart Rules' section, it is recommended to select 'Restart after failure' or 'Restart if not manually stopped', which can ensure that the system will automatically attempt to recover even if the container stops unexpectedly, thus improving the availability of the service.

After completing all the configurations, click the "Confirm" button at the bottom of the interface, 1Panel will start creating and launching the Docker container for the Safe CMS.This process may take a few minutes, please be patient.

Configure reverse proxy site.

After the Docker container is successfully created, we still need to set up reverse proxy so that users can access the safe CMS through the domain name.

In the 1Panel left navigation menu, click the "Website

In the pop-up interface, select 'Reverse Proxy' as the website type. In the 'Primary Domain' field, enter the domain name you have prepared for the Anqi CMS, for example:your-domain.comortest.anqicms.com.

Enter in the "Proxy Address" field,127.0.0.1:8001Here,127.0.0.1Represents the server itself,8001

Finally, click "Confirm" to complete the creation of the site.1Panel will automatically configure Nginx reverse proxy, forwarding requests to the AnQi CMS service running in a Docker container for your domain.

First visit and use of Anqi CMS

Now, the Anqi CMS has been deployed and configured with a reverse proxy. You can enter the previously set domain name (for examplehttp://test.anqicms.com/Access it by auto. For the first time, the Safe CMS will guide you to enter the initial installation interface, follow the prompts to complete the database connection, administrator account settings, and other steps.

After the installation is complete, you can start using the powerful content management features of Anqi CMS. The backend management address of Anqi CMS is usually your domain name plus/system/for examplehttp://test.anqicms.com/system/. Through this address, you can log in to the backend and start content creation, website optimization, and daily operation work.

Common Questions and Answers (FAQ)

1. Why is it recommended to use Docker to deploy the Anqi CMS?

Using Docker to deploy AnQi CMS has many advantages.Firstly, Docker provides an isolated environment to ensure that the CMS and all its dependencies run in an independent container, avoiding conflicts with other applications on the server.Secondly, it simplifies the deployment process, only requiring a mirror name to quickly pull and start, greatly reducing the complexity of installation.In addition, Docker containers are lightweight and portable, making it easy to upgrade, migrate, and scale, which is very valuable for website operations teams that require rapid iteration and flexible management.The Anqi CMS is known for its simple deployment, and combined with Docker, it becomes even more powerful.

2. If I deploy multiple security CMS instances in 1Panel, how can I differentiate their databases?

When you deploy multiple security CMS Docker containers on the same server, to avoid data conflicts, each security CMS instance must have an independent database. When installing each security CMS instance, in addition to assigning different server ports to it, you also need to specify a for each instance in the initialization installation interface of security CMS.DifferentThe name of the database. For example, the first instance can useanqicms_main, the second instance can useanqicms_blogAnd so on.After installing MySQL service in the 1Panel app store, you can create multiple databases as needed and associate them with each CMS instance during the installation process.

3. What are the default administrator login credentials after the 3. Security CMS deployment is completed?

After the initial installation and setup, you need to set up the administrator account and password in the installation wizard.If you install through some one-click deployment script (such as the Docker App Store in Baota Panel), you may sometimes be provided with default credentials.adminThe default password is123456.However, for website security, it is strongly recommended that you change these default administrator accounts and passwords immediately after your first login to the backend, to prevent unauthorized access./system/.