I have been fascinated with the ease of use that the new application compose feature within StackEngine. Now, you can easily compose a WordPress application in Docker by dragging and dropping components together. In the case of WordPress, the application is composed of a WordPress component and a database component. For the database, we are going to use MariaDB, which is a community-developed fork of the MySQL.
Components are the basic building blocks within StackEngine. It is the representation of a specific image and tag in a Docker repository (public or private). In this case, both the WordPress and MariaDB are public images, pulled from Docker Hub.
If components are like elements, then applications are like molecules. An application combines components together with run time (like port assignments) and environmental (like passwords) variables. For instance, I need to configure how the WordPress component will successfully login to the database.
Configuring the components in the application was very quick and easy. Once configured, the application is ready to deploy.
StackEngine will save the configured application as a YAML. This is a great convenient way to share configured application, so that they can be easily copy and pasted into another running instance of StackEngine. In fact, if you wish you try this, just copy the WordPress YAML from Github, and paste into your StackEngine instance.
Deploying the application is super easy. Just tag your application. This allows you to keep track of the configured version that you are launching. In this case, I used the tag “latest” as the version that I would deploy into existence. Use the Launch button, choose your resource pool, and voila StackEngine automatically schedules the WordPress application in Docker, complete with database.
Once deployed, simply hit the public IP address of your host to setup and use your new WordPress application in Docker.
The post Compose and Deploy a WordPress Application in Docker with StackEngine appeared first on StackEngine.