Docker + Swarm projects.

Some docker + swarm projects (On updates)

  • docker-dev-stack

    This project is a production-style, Dockerized web application stack built around a Next.js application and deployed using Docker Compose. The system consists of five coordinated containers: a Next.js app serving a React frontend and API routes, PostgreSQL for persistent data storage, Redis for in-memory caching, Nginx as a reverse proxy and traffic router, and an optional Adminer service for database management. All services run on a custom Docker bridge network, allowing secure service-to-service communication via container names rather than hard-coded IPs. The setup includes health checks and service dependency management to ensure the application starts only after critical services like PostgreSQL and Redis are ready. A multi-stage Dockerfile is used to produce a minimal production image, significantly reducing image size by excluding development dependencies and build tools. Persistent volumes ensure database data survives container restarts, and a dedicated health check API endpoint mirrors real-world readiness and liveness probe patterns used in Kubernetes. The entire stack is managed via a custom CLI script, providing streamlined commands for startup, logging, database access, and health verification, closely simulating real-world DevOps workflows.

  • SSH Connections

    This project includes a script for connecting to Docker containers using SSH. It automates the process of connecting to two specific containers within a Docker network.

  • Dockerized Apache Server

    This project demonstrates how to set up an Apache web server inside a Docker container using a Debian base image. The containerized Apache server can be used to host static websites, serve dynamic content, or act as part of a microservices architecture.