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/extending the availability of the VM.
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
In this step, we shall create the ownCloud compose file from which we’re going to start the ownCloud container, use the following command to achieve that;
Copy and paste the following commands in the newly created file and then close it, it’s worth noting that using this code will make you use SQLite as the database;
Now, we need to start running the container using the following command;
After the installation process is complete, you can log to your container from the browser using your IP address that you can get from your Dply dashboard e.g. (http://machine_IP).
Now, you’ll be directed to ownCloud installation window, create your admin username and password, then hit the “Finish Setup” tab at the bottom of the page.
Now, you’ll be directed to your ownCloud portal.
Congratulations, you’ve successfully installed an ownCloud container on Dply, we’re going to cover installing more web applications images using Docker on Dply in the following posts.