Run Docker Swarm over a WireGuard VPN
Updated: Oct 06, 2025
Overview Running Docker Swarm over a VPN isolates cluster control and data traffic from the public internet. This guide shows a practical setup using WireGuard, with Swarm advertising and data-path bound to the VPN interface. You’ll get a......
Set Up Docker Swarm on a Local Network with Managers and Workers
Updated: Oct 06, 2025
Overview This guide shows how to set up Docker Swarm across machines on the same local network. You will create a manager, join worker nodes, open required ports, and deploy a replicated service via an overlay network. Quickstart One......
Backup and Restore PostgreSQL in Docker Compose (Practical Guide)
Updated: Oct 06, 2025
Overview This guide shows practical ways to back up and restore PostgreSQL running in Docker Compose. It uses pg_dump/pg_restore for single databases and pg_dumpall for full cluster backups. All commands use docker compose (v2). Replace......
Docker Compose for FastAPI with Postgres, Redis, and NGINX/Caddy
Updated: Oct 06, 2025
Overview This guide shows a practical Docker Compose setup for a FastAPI service backed by Postgres and Redis, fronted by either NGINX or Caddy. It includes healthchecks, sane defaults, and a minimal FastAPI app to verify everything......
Docker Compose: NGINX with Local HTTPS (SSL) Setup
Updated: Oct 06, 2025
Overview This guide shows how to run NGINX with HTTPS (SSL/TLS) on your local computer using Docker Compose. You’ll generate a local certificate, wire it into NGINX, and verify the setup with curl and a browser. What you’ll get: A minimal......
Set up HTTPS with Caddy in Docker Compose
Updated: Oct 06, 2025
Overview Caddy is a modern reverse proxy that automatically provisions and renews TLS certificates via Let’s Encrypt. This guide shows how to put Caddy in front of containers using Docker Compose, terminating HTTPS with minimal......
Fix VS Code Python warnings in Docker Compose projects
Updated: Oct 06, 2025
Overview When editing Python inside a Docker Compose project, VS Code often shows warnings such as: Import "X" could not be resolved Module not found or type-checking errors These usually happen because VS Code (and Pylance)......
How to use a Makefile to simplify Docker and Compose commands
Updated: Oct 06, 2025
Why use a Makefile with Docker/Compose Typing repetitive docker and docker compose commands is error-prone. A Makefile gives you short, memorable targets (build, up, logs, clean) and a single entry point for your team. This guide shows a......
Docker Compose: Change PostgreSQL Username and Password Safely
Updated: Oct 06, 2025
Overview Changing PostgreSQL credentials in a Docker Compose stack requires more than editing environment variables. The official postgres image only uses POSTGRES_USER/POSTGRES_PASSWORD on first initialization of the data directory. After......
Linux Permissions: The Ultimate Cheat Sheet
Updated: Feb 07, 2025
Linux is renowned for its security and flexibility, and at the heart of its robust security model lie file permissions. Whether you’re a system administrator, developer, or just a curious Linux user, mastering permissions is essential for......
How to reset Ubuntu to factory settings (4 approaches)
Updated: Feb 07, 2025
Whether you’re planning to clear your personal data before selling your computer or you need to troubleshoot persistent performance issues, resetting Ubuntu to its factory settings can give you a fresh start. This guide covers four......
Making GET requests with cURL: A practical guide (with examples)
Updated: Feb 07, 2025
Interacting with web services and APIs is a vital skill for developers, system administrators, and anyone who needs to retrieve data from the internet. One of the most versatile and powerful tools for this purpose is cURL. In this guide,......