Deploy Docker container using Ansible

Overview Hello there fellow Linux adventurers. I hope you’re ready for today’s adventure in the land of automation. Through this article you’ll be shown steps how to deploy Docker container using Ansible on a remote Linux machine that runs Docker engine. By the end of article you should have enough understanding how to automate process of Docker container deployment on a multiple Linux inventory, with preset of environment variables and configs for needed Docker container. ...

November 7, 2024 · 6 min · 1104 words · MarkoN

How to Install Docker using Ansible[Ubuntu/Debian]

Overview This article will showcase a process how to install Docker using Ansible. We’ll be covering two different approaches how to install Docker with Ansible, one for production environment and other for development/testing purposes. This process can be applied on any type of Linux machine - bare metal, VM or a cloud VM instance. For this example we’ll be running the playbook on Ubuntu 24.04 LTS. Side note - we also covered a process how to deploy Docker containers using Ansible - The process can be looked at this post, and how to deploy Nextcloud and Wordpress on Docker using Ansible. ...

July 28, 2024 · 7 min · 1425 words · MarkoN

Deploy Nextcloud on Docker using Ansible

Overview In this article we are going to go through the steps how to deploy Nextcloud on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Nextcloud on Docker with the Ansible playbook. In order to deploy nextcloud on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible - link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing. You’ll know that it’s if you get an error mentioning that the module is missing or not found. Picture example of the error bellow: ...

December 24, 2023 · 6 min · 1158 words · MarkoN

Install Urbackup server using Docker

Overview Urbackup is a cross-platform server/agent backup solution. Quite versatile, feature rich and available on many platforms. We already covered how to install Urbackup on distros such as Ubuntu and Debian and in this post we’ll cover the procedure on how to Install Urbackup server using Docker or in other words - how to deploy Urbackup server as a Docker container. Prerequisites: A Docker node/server with Docker engine installed and running. ...

May 1, 2022 · 5 min · 976 words · MarkoN

Add a remote Docker host in Portainer using the edge agent

Overview The following article will cover the steps how to add a remote Docker host in Portainer using the edge agent. Portainer supports remote management of multiple Docker hosts and has features and multiple tools/methods how to achieve it. This post will focus on using the Portainer edge agent. In order to add a remote Docker host in Portainer there some requirements: Portainer Docker host(Portainer installed and running) Remote host/instance/server with Docker installed and running as well(Install Docker on Debian/Ubuntu) Portainer edge agent installed and running on the remote Docker host Portainer egde agent? Portainer edge agent is a Docker container, which acts as an Portainer agent/client on a remote Docker host in order to establish a connection between one and another add a remote Docker host in Portainer. The edge agent is used because of the simplicity when installing and connecting Portainer to a remote Docker host and also it’s a secure option as well since the agent encrypts all the traffic between the Portainer and the remote Docker host. ...

April 30, 2022 · 4 min · 811 words · MarkoN

Setup Nextcloud with Redis using Docker

Setup Nextcloud with Redis using Docker Overview We’ll go through the steps how to Setup Nextcloud with Redis using Docker. For this process we’ll be using Docker compose and build a stack to deploy at once Nextcloud Docker container with MariaDB and Redis all together. Requirements to setup Nextcloud with Redis: Docker installed and running on the host server(Install Docker) Docker compose installed(Install Docker Compose) What’s Redis and why it’s recommended to deploy it with Nextcloud Redis is an open source object cache server that can be used as a database cache in order to improve database performance. By default Nextcloud doens’t have database cache(can be configured though) and without database cache, the Nextcloud performance can dwindle(be really slow in other words) but when Redis is added into the play, it can drastically improve Nextcloud performance. Redis also have an official Docker container, which we’ll be using in this docker compose file. ...

February 11, 2022 · 5 min · 876 words · MarkoN

Deploy Wordpress on Docker using Ansible

Overview The following article will cover the steps how to deploy Wordpress on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Wordpress on Docker with the Ansible playbook. In order to deploy wordpress on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible – link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing. You’ll know that it’s if you get an error mentioning that the module is missing or not found. Picture example of the error bellow: ...

December 29, 2021 · 5 min · 1010 words · MarkoN

How to install Zerotier VPN on Synology NAS

How to install Zerotier VPN on Synology NAS Overview The following article will showcase the steps how to install Zerotier VPN on Synology NAS. The procedure will be done step by step. The method we’ll be using to install, configure and deploy the VPN on the Synology is by running the Zerotier VPN using Docker, aka as a Docker container. This procedure will allow us to connect to our Synology more securely. The reason why we need Docker for this is because the DiskManager firmware from version 7 doesn’t allow apps to run as root anymore. ...

December 13, 2021 · 4 min · 777 words · MarkoN

How to Install Jenkins with Docker

How to install Jenkins with Docker Overview This article will cover the steps how to Install Jenkins with Docker. We’ll be deploying the Jenkins LTS release on a single host machine and we’ll be using the Jenkins official Docker image from the Docker hub. The full Jenkins Docker documentation can be checked out on the official jenkins github. Jenkins is a well-known and popular open source CI/CD automation tool. With many benefits it offers, it can sometimes be tedious to run maintenance on it, since it depends on Java to run. Luckily, we now have a Docker version of Jenkins which we can easily deploy and simplifies the maintenance since it has Java included as well. ...

September 5, 2021 · 4 min · 737 words · MarkoN

How to install Wordpress using Docker

How to install Wordpress using Docker Overview In this article we’re going to go through the steps how to install Wordpress using Docker. In other words, we’re going to install Wordpress with a Docker container and also with Docker compose. The scenario for the following procedure will look as follow: Singe host machine(one debian server) and a single docker engine running. We’re going to install an official Wordpress docker container on our host and setup the data persistency as well. This method of course will work on other linux host machines as long it runs docker engine. ...

July 6, 2021 · 5 min · 1013 words · MarkoN

Install Wireguard VPN server with Docker

Overview This article will showcase the procedure how to install Wireguard VPN server with Docker. In another words, we’ll deploy Wireguard container(as a Docker container) on our host macine.Wireguard is another good VPN option besides OpenVPN. Wireguard doesn’t have an official Docker image yet, so we’ll be using the Docker Wireguard image from linuxserver.io - This exact image used in this post: Docker Hub (and Github page) This procedure is also covered with OpenVPN. You can check it out on this post. ...

June 7, 2021 · 6 min · 1192 words · MarkoN

Setup Kubernetes cluster with Rancher

Setup Kubernetes cluster with Rancher Overview In this post we will go through the process how to setup Kubernetes cluster with Rancher. Kubernetes is an amazing technology and one of the best way to orchestrate your containers. But sometimes, if you have a lot of containers or planning to host a lot of applications, it can be a bit easier to manage all those with a GUI dashboard, like Kubernetes dashboard. In this article we will cover the Rancher software, how to install it on Debian 10 Buster and how to setup Kubernetes cluster. This method can be done on Debian VM or on a bare metal machine and it also works on Ubuntu. ...

May 16, 2021 · 4 min · 826 words · MarkoN