Example of Building a WordPress Website on Container Cloud
Published: 2019-07-03
Container Cloud purchase page: https://www.west.cn/paas/container/
Containers: one MySQL image container, one WordPress image container.
WordPress Image Container Purchase and Activation
vCPU, memory, hard disk, and network line can be selected according to your own needs. If you do not need an independent IP, you can choose [Shared IP Public Network].

Click to select an official image, search for WordPress in the pop-up official images, and then choose to use it.

The official WordPress image has many versions. The corresponding WordPress versions also correspond to PHP versions. Here you can choose according to your own needs. In this example, we chose the 5.2.0-php7.1-apache version.
Note: You must choose a version with Apache; other versions do not have web service.

MySQL Image Container Purchase and Activation
vCPU, memory, hard disk, and network line can be selected according to your own needs. MySQL does not need external communication, so choosing a private network is sufficient. However, if you want external network connection, you can choose [Dedicated IP Public Network].

For the image, select an official image and choose a version according to your own needs.

Container Management
After activation, go to the Management Center, Business Management -- Container Cloud Management
Container Grouping
You can first click Container Group Management to create a group. The group name and description can be filled in by yourself (not mandatory; it is only to facilitate subsequent management, and you can authorize separate login to the management panel).

Click Member Management and add the two activated containers to it.

Network Management
Add a switch


Click the switch you just added, and directly click the container to connect it to the switch.
Container Management
Enter Container Management, find the WordPress container, click Manage, and add your own domain to the whitelist. There is a DNS resolution address at the bottom of the page; resolve the domain to this address.

MySQL Container Management
Enter the management of the MySQL container. Below you can see the connected private network IP (when installing the website, fill in this IP as the database address). Click [Terminal Management] to enter the command line, where you can use MySQL commands to create a database account and password (omitted here and not introduced).

After the website domain takes effect, you can access and install it. During installation, fill in the private network IP address of the MySQL container as the database address (click the MySQL container's management button to enter, and you can see the private network IP). The database account and password can be created in the MySQL container terminal.

