DevOps
9 posts in this category
NestJS Telegram Alerts: Exception Filter, Jobs, and Deploy
Telegram Bot API in NestJS: TelegramModule, exception filter for 5xx alerts, BullMQ job failures, and deploy hooks — no external libraries needed.
How to Load Balance with HAProxy on Docker Compose
Deploy HAProxy as a Docker Compose load balancer with round-robin routing, health checks, and the Stats UI for monitoring backends.
Manage EC2 production: Docker logs, CPU, and RAM
A practical EC2 production checklist: limit Docker logs, avoid full disks, and monitor CPU, RAM, disk, network, and status checks.
Install Docker on Ubuntu with docker.io
Install Docker quickly on Ubuntu with apt, add your user to the docker group, and verify the setup with hello-world.
Run NestJS in production with PM2 restart and logs
Use PM2 to run NestJS on a Linux server, build the app, start it with an ecosystem file, inspect logs, restart on crashes, and restore after reboot.
Docker Compose for multi-project local dev
Use Docker Compose to run multiple projects side by side, avoid port conflicts, isolate MySQL and Redis, and keep local dev easy to reset.
Nginx Proxy Manager with Docker Compose and SSL
Run Nginx Proxy Manager with Docker Compose, point multiple domains to one server, reverse proxy internal apps, and request SSL certificates.
Container exit 137: debug OOMKilled and memory limits
Debug Docker or Kubernetes containers restarting with exit code 137, tune Node.js memory limits, and inspect possible memory leaks.
Nginx 413 after client_max_body_size: how to fix it
Why Nginx still returns 413 even after setting client_max_body_size, and how to fix it when you have multiple proxy or reverse proxy layers.