This post will be an introduction to deploying web applications on dply.co using docker containers, please note that the free tier of dply.co is only for 2 hours so you should only use it for trial purposes, of course, you can always pay to make it a production version.
Follow the first post to create an account and install Docker.
In the terminal window, we’ll need to install Docker compose using the following command;
curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
You’ll then need to apply executable permissions for the binaries using the following command;
chmod +x /usr/local/bin/docker-compose
Now, we need to create a directory for the WordPress container, use the following command to create that directory;
First, we need to change directory to the newly created directory using the following command;
In this step, we shall create the wordpress compose file from which we’re going to start the WordPress container, use the following command to achieve that;
Copy and paste the following command in the newly created file and then close it (save the changes before closing, Ctrl+x and then say “y” when you’re asked whether you want to save changes or not;
Now, we need to start running the container using the following command;
docker-composer.yml up -d
After the installation process is complete, you can log to your container from the browser using your IP aggress that you can get from your Dply dashboard plus the 8000 port, e.g. (http://machine_IP:8000).
Now, you’ll be directed to the WordPress installation window, select the language and click the “Next” tab.
Now, create your site name, username, password, and email, then hit the “Install WordPress” tab.
Now, you’ll be directed to the login window.
Congratulations, you’ve successfully installed a WordPress container on Dply, we’re going to cover more Docker container installations in the coming posts.