HeheCloud can help you quickly build a container-based high-availability elastic cluster environment. It also helps you easily deploy and manage applications and quickly integrate more services.
You can build your app in three different ways:
Heroku Buildpack: For Heroku style Application
Dockerfile: Based on the basic OS you choose, you can customize a lightweight application running environment
Docker image: Helps simplify the continuous integration/continuous delivery build process
Here we use the Docker image
method as an example to deploy a complete ’s Wordpress
, explains how to deploy a complete application
Before starting the following steps, please make sure you have followed the guidance to add the host and complete the initialization of the cluster
Create MySQL service
Click Service Integration
in the left navigation and select MySQL
##Then click the
Start button to install and start the MySQL service
Wait for a moment and wait for the service status to change
Running, and waiting for the configuration information to be loaded
If you need to manage MySQL online, you can enable
additional phpMyAdmin in Service
##Create the application
First you need to followUsage Guide Install the Deis client and use the Deis client to log in to the security account you set when building the clusterHere, we borrow the domestically accelerated WordPress Docker image provided by DaoCloud:
Open the command line window and run the command:
Create a directory
blog, and enter the directory: <pre class="brush:php;toolbar:false">$ mkdir blog && cd blog</pre>
Initialize git, and use
to create an application named blog
: <pre class="brush:php;toolbar:false">$ git init
$ deis create blog</pre>
Let’s check Mirror description, get the environment variables that need to be set:
WORDPRESS_DB_HOSTDatabase host address (IP and port of the MySQL service, for example:
Write the configuration information of the MySQL service we just opened into the application's environment variables:: 3306 )WORDPRESS_DB_USER
Database username (default is root)WORDPRESS_DB_PASSWORD
Database password (password to connect to the database)
deis config:set \ WORDPRESS_DB_HOST="10.171.135.123:3306" \ WORDPRESS_DB_USER="root" \ WORDPRESS_DB_PASSWORD="0pztkvjVGQaeeNsfJUDx"
Finally, we deploy the application directly through the mirror:
deis pull daocloud.io/daocloud/dao-wordpress:latest
Wait a moment and you're done!
Click
My Application in the left navigation and view application information, container information, access logs, etc.:
##Last watch Take a look at the blog we deployed:
此外,如果您想使用自定义域名,可以运行: 命令运行完毕,您就可以把域名解析到您的主机上了 更多高级用法请查看:官方使用指南 和 Deis中文指南绑定域名
deis domains:add hehe123.com