Category: Cloud

  • Automatic deployment with portainer

    by

    in

    If you are self hosting your website and aiming for automating the deployment, this quick guide might help you. In this we are going to run the docker services inside a docker swarm cluster and will manage it using portainer. Also we use gihub webhook for automatically triggering the deployment when ever new changes are…

  • Using secrets in portainer

    This is a quick post on how to use docker secrets with portainer. We will use the pgadmin service as an example to demonstrate this. Login to the portainer and navigate to the secrets landing page. Then click on create secrets as shown below. After saving the secret go to the stacks and create new…

  • Setting up Traefik load balancer on Docker Swarm

    by

    in

    Recently I was upgrading my home servers from Raspberry Pi to a PC with high configuration (intel i7, 32GB RAM and 1TB SSD). On Raspberry Pi, I used a single node docker network, but with plenty of resources to spend I wanted to explore on multi node Docker Swarm setup. Nginx is a high performing…

  • Nginx SSL pass through

    In most of the configuration we terminate the SSL at the load balancer and use http connection from load balancer to the server when it is in internal network. But in some situation we needed SSL pass through such as if the server is handling the SSL certificates. For example, in my home network, I…

  • Backup and restore postgres database with docker run

    Now a days it is common to use database as a service from cloud providers instead of maintaining the local postgres installation. Also there will be times you switch between providers due to some reason such as better cost or better performance. That time you may feel the need to install postgres client to back…

  • Working with docker stack and iptables

    After moving to new country, I am setting up my home network to bring some of containers back from the cloud to self hosting from home. But the problem with my new router is there is no port based routing either all or none by setting the self hosting server as default DMZ server will…

  • My docker swarm setup

    I am running my websites from my Raspberry Pi mini PC, and in this post, I am going to explain how I organize the apps and manage security using docker swarm network. In my setup I choose nginx container as webserver created on top of light weight alphine linux containers. This performs very well on…

  • Which cloud hosting to use in 2022?

    If you are starting a small online business like me, this advise might help you. I have done some research recently as I was migrating my web apps hosted from home on my Raspberry Pi4 to cloud hosting. I was considering three factors for choosing best hosting. Cost Performance Features Reliability As many of the…

  • Performance comparison between Digital Ocean Droplet and Raspberry Pi 4

    I am hosting all of my websites including this one in Raspberry Pi. Nearly 7 websites are running in a single Raspberry Pi 4 with 8Gb RAM. As am I am planning to move to a different country wanted to transfer my websites to cloud temporarily. As I was researching how it will be the…