web analytics

Installing Webmin Docker Container on Dply

webmin-dply-logo

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 Webmin Docker container 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.

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;

sudo curl -o /usr/local/bin/docker-compose -L “https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)”

1 - Webmin 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

1-1 - Webmin Docker on Dply

Step Four

In this step, we should create the docker-compose file to deploy Webmin use the following command to do that;

nano docker-compose.yml

1-2 - Webmin Docker on Dply

Step Five

Now, copy and paste the following code in the newly created file;

webmin:
image: irasnyd/webmin-ldap
ports:
– “10000:10000”
environment:
– “WEBMIN_ROOT_PASSWORD=supersecret”
– “WEBMIN_LDAP_ADMINISTRATORS=user1:pass1,user2:pass2”
– “WEBMIN_SSL=0”
– “LDAP_URI=ldap://ldap.example.com”
– “LDAP_BINDDN=cn=admin,dc=example,dc=com”
– “LDAP_BINDPW=adminpassword”
– “LDAP_BASE=dc=example,dc=com”
– “LDAP_BASE_UID=10000”
– “LDAP_BASE_GID=10000”
– “LDAP_DEFAULT_SHELL=/bin/bash”
– “LDAP_DEFAULT_GROUP=ldapusers”
– “LDAP_USER_BASE=ou=Users,dc=example,dc=com”
– “LDAP_GROUP_BASE=ou=Groups,dc=example,dc=com”
mem_limit: “1g”
restart: “always”

Source: https://github.com/irasnyd/webmin-ldap/blob/master/docker-compose.yml

Step Six

Now type the following command to start the deployment process;

docker-compose up

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

6 - wordpress Docker on Dply

Step Eight

Now, you’ll be directed to Webmin login window, use “user1” as username and “pass1” as the password.

2 - Webmin Docker on Dply

Step Nine

Now, you’ll be directed to the Webmin main window.

3 - Webmin Docker on Dply

Congratulations, you’ve successfully installed a Webmin container on Dply, we’re going to cover more Docker container installation for many more web applications in the coming posts.