As a senior security CMS website operation personnel, I am well aware of the importance of efficient and stable deployment methods for our content team.AnQi CMS with its lightweight, efficient Go language, SEO-friendly, and rich enterprise-level features has become our preferred daily content management tool.When combined with a modern server management panel like 1Panel, deploying AnyCms through Docker can greatly simplify the installation and maintenance process.

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

Preparation before deploying AnQi CMS in 1Panel

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

In addition to 1Panel itself, in order for Anq CMS to run smoothly and provide comprehensive functions, we also need to install some necessary auxiliary software in the 1Panel app store.This usually includes OpenResty as a web server and MySQL as a database service.These are key components for the normal operation of the content management system, please complete their installation in advance.

Enter the AnQi CMS Docker image name and create a container

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

First, please log in to your 1Panel panel. In the left navigation menu, find and click the 'Container' option, and then switch to the 'Container' tab.Here, you will see a 'Create Container' button, click it to start configuring the new container.

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

Next, the focus of this tutorial is to specify the Docker image. Please select the "Manual input" option and accurately enter the Docker image name of Anqicms in the input box that follows:anqicms/anqicms:latest. This name points to the latest stable version image maintained by AnqiCMS 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 'Container' port fields, fill in '8001' uniformly.The AnQi CMS Docker container runs on port 8001 by default, therefore the server port should also be mapped here for external access.If you plan to deploy multiple AnQi CMS instances on the same server, please allocate a different server port for each subsequent instance (e.g., 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 ensures that even if the container stops unexpectedly, the system can automatically attempt to recover, improving the availability of the service.

After completing all the configurations, click the "Confirm" button at the bottom of the interface, 1Panel will then start creating and launching the Docker container for AnQi 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 AnQi CMS through a domain name.

In the left navigation menu of 1Panel, click the 'Website' option, and then click the 'Create Website' button again.

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 AnQi CMS, for example:your-domain.comortest.anqicms.com.

Enter in the "Proxy Address" field127.0.0.1:8001. Here,127.0.0.1Represents the server itself,8001This is the server port you previously configured for the AnQi CMS Docker container.If you have multiple Anqie CMS containers using different server ports, make sure to fill in the correct port for the corresponding instance.

Finally, click "Confirm" to complete the creation of the site. 1Panel will automatically configure Nginx reverse proxy to forward requests to the Aiguo CMS service running in the Docker container.

First visit and use AnQi CMS

Now, AnQi CMS has been deployed and configured with a reverse proxy. You can enter the previously set domain name in the browser (for examplehttp://test.anqicms.com/Access it. When you visit for the first time, Anqi CMS will guide you to enter the initialization 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/. Log in to the backend at this address to start content creation, website optimization, and daily operations.

Frequently Asked Questions (FAQ)

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

There are many advantages to deploying AnQi CMS with Docker.First, Docker provides an isolated environment, ensuring that Safe 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 one image name is needed to quickly pull and start, which greatly reduces the complexity of installation.In addition, Docker containers are lightweight and portable, making it easy to upgrade, migrate, and expand. This is very valuable for website operations teams that need to iterate quickly and manage flexibly.AnQi CMS is known for its simple deployment, and combined with Docker, it is even more powerful.

2. How can I differentiate the databases of multiple security CMS instances deployed in 1Panel?

When deploying multiple Anqin CMS Docker containers on the same server, to avoid data conflicts, each Anqin CMS instance requires an independent database. When installing each Anqin CMS instance, in addition to allocating different server ports for it, in the Anqin CMS initialization installation interface, you also need to specify one for each instancedifferentThe database name. For example, the first instance can useanqicms_main, the second instance can useanqicms_blogAs for the rest. After installing the MySQL service in the 1Panel app store, you can create multiple databases as needed and associate them with each safe CMS instance during the installation process.

3. What are the default administrator login credentials after the AnqiCMS deployment is complete?

After the initial installation and initialization of Anqi CMS, 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), default credentials may sometimes be provided.For example, the Docker installation document in the Baota panel mentions that the default account isadmin, and the default password is123456However, 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.The backend access address is usually your domain name plus/system/.