Posts in "dev"

How to Set Up MongoDB 8 Master-Slave on Debian 12 (Bookworm)

MongoDB is a super flexible NoSQL database, and if you’re running it on Debian 12 (Bookworm), setting up Master-Slave (Primary-Secondary) replication can help with scaling and data redundancy. This guide will take you through installing, running, and configuring MongoDB 8 for a master-slave setup. Prerequisites Step 1: Install MongoDB 8 on Debian 12 1.1. Update… Continue reading

Master-Slave PostgreSQL Replication Setup on Debian 12

PostgreSQL replication is a robust solution for ensuring database availability, load balancing, and failover readiness. This guide provides a step-by-step approach to setting up Master-Slave replication on Debian 12, using PostgreSQL 15, along with hostname-based configurations. 1. System Prerequisites 1.1 Server Environment We will use four Debian 12 servers with PostgreSQL 15 installed: 1.2 Update… Continue reading

PostgreSQL Storage Paths to Consider for Mounting on Debian 12

When setting up a PostgreSQL master-slave replication or general database storage management, you should consider mounting specific storage paths to optimize performance, ensure data integrity, and manage disk usage efficiently. Below is a list of important PostgreSQL storage paths and their purposes: 1. Data Directory (Main Database Storage) Path: /var/lib/postgresql/<version>/main/Purpose: Stores all PostgreSQL database files,… Continue reading

Installing and Setting Up RabbitMQ Master-Slave Cluster on Debian 12

RabbitMQ is a robust message broker widely used in distributed systems. This guide provides a detailed, step-by-step tutorial on installing RabbitMQ 3.10.8 with Erlang 25.2.3 on Debian 12 and configuring a Master-Slave cluster. The setup will involve two servers: a Master at 10.11.33.83 and a Slave at 10.11.33.93. 1. Configure Hostname Resolution Ensure both servers… Continue reading

Understanding Docker Connectivity, Networking and Configurations.

When working with Docker to build scalable applications, networking and service configuration are critical components. Over the course of our exploration, we’ve touched on a variety of topics, starting with creating a docker-compose.yaml template, understanding network modes like bridge and host, and configuring services like MySQL. This article captures the complete journey to demystify Docker’s… Continue reading

Running Mattermost on Debian 12 Using Docker, without NGINX, and use External PostgreSQL

Mattermost is a powerful open-source collaboration tool that can be deployed in various ways, including using Docker for easy setup and management. This tutorial will guide you through setting up Mattermost on Debian 12 using Docker, with an external PostgreSQL database configured in host network mode and without setting up Nginx. Prerequisites Before proceeding, ensure… Continue reading

Where Docker Stores Images on Debian 12 and How to Customize the Storage Directory

Continuing from our previous article on setting up Docker and running Docker Compose on Debian 12 Bookworm, let’s dive deeper into understanding where Docker stores its image files and how to customize the storage directory for better management. Default Docker Image Storage Location on Debian 12 By default, Docker stores all its data, including images,… Continue reading

How to Resize a Linode Volume Disk on Debian 12 Without Data Loss

Resizing a Linode Volume Disk on Debian 12: A Step-by-Step Tutorial If you’re using Linode Volume Disk, the name is “/mnt/disk-rdbms-slave-x51n61-data”,config as “/dev/sdc” and need to resize it from 20GB to 30GB without transferring data to another disk, this guide will walk you through the entire process. It covers resizing the volume, checking and repairing… Continue reading

How to Install Invoice Ninja On Debian 12 Bookworm

Invoice Ninja is a popular open-source platform for managing invoices, clients, and payments. However, due to their frequent release cycle, installation can sometimes be challenging. This guide provides a step-by-step working method to install Invoice Ninja on a self-hosted Debian 12 Bookworm system. Before you start, ensure you have MariaDB, NGINX, and PHP 8.2 installed… Continue reading