web analytics
Skip to content

How to Install ownCloud Docker Container on Dply


    Before proceeding please note that Dply services are no longer available 

    We’ve covered installing Docker on Dply.co in a previous post, this post will be a follow on to this post and we’ll use Docker containers to install an ownCloud image on dply.co

    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.

    Step One

    Follow the first post to create an account and install Docker.

    Step Two

    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

    1 - wordpress Docker on Dply

    Step Three

    You’ll then need to apply executable permissions for the binaries using the following command;

    chmod +x /usr/local/bin/docker-compose

    2 - wordpress Docker on Dply

    Step Four

    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;

    nano docker-compose.yml

    1 - owncloud on dply

    Step Five

    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;

    container_name: owncloud
    image: owncloud
    – 80:80

    Source: http://blog.securem.eu/serverside/2015/08/25/setting-up-owncloud-server-in-a-docker-container/

    Step Six

    Now, we need to start running the container using the following command;

    docker-composer up

    2 - owncloud on dply

    Step Seven

    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).

    6 - wordpress Docker on Dply

    Step Eight

    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.

    3 - owncloud on dply

    Step Nine

    Now, you’ll be directed to your ownCloud portal.

    4 - owncloud on dply

    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.