Auth Service
A production-ready authentication microservice built with Node.js and Docker as part of a cloud-native microservices architecture deployed on AWS EKS.
Features
- Node.js authentication API
- Multi-stage Docker build
- Non-root container execution
- Optimized production image
- Docker Compose support for local development
- Kubernetes manifests included
- GitHub Actions CI pipeline
- AWS ECR image publishing
- AWS EKS deployment support
- Health and readiness endpoints
Tech Stack
- Node.js
- Docker
- Kubernetes
- AWS EKS
- Amazon ECR
- GitHub Actions
- Docker Compose
Image Highlights
- Production-ready image
- Lightweight multi-stage build
- Security best practices
- Optimized Docker layers
- Versioned image tags
- Suitable for cloud-native deployments
Container Port
Run
docker run -d -p 5000:5000 yousef2005/auth-service:latest
Example
curl http://localhost:5000/health
Part of a Cloud-Native Microservices Project
This image is one service within a larger microservices platform that includes:
- Authentication Service
- Products Service
- Cart Service
- Order Service
The platform demonstrates:
- Docker
- Kubernetes
- AWS EKS
- Amazon ECR
- GitHub Actions CI/CD
- Terraform
- Docker Compose
- Production deployment workflows
CI/CD
Every push triggers an automated pipeline that:
- Builds the Docker image
- Runs validation steps
- Pushes the image to Amazon ECR
- Deploys to Amazon EKS using reusable GitHub Actions workflows
Security
- Multi-stage Docker build
- Non-root container
- Production-ready image
- Health checks
- Kubernetes-ready configuration
Repository Structure
auth-service/
├── src/
├── controllers/
├── models/
├── config/
├── utils/
├── k8s/
├── Dockerfile
├── docker-compose.yml
└── .github/workflows/
Related Services
- auth-service
- products-service
- cart-service
- order-service
License
MIT