This guide provides instructions for deploying the Food Ordering & Delivery System using Docker and Kubernetes with kind.
Prerequisites:
- Docker installed
- Docker Compose installed
Steps:
-
Navigate to the backend directory:
cd backend -
Start the services using Docker Compose:
docker-compose up --build -
Verify that all services are running:
docker ps -
Access the application: http://localhost
Prerequisites:
- kind installed
- kubectl CLI installed and configured
Using kind for Kubernetes Deployment:
-
Create a kind cluster:
kind create cluster --name nomnom-system -
Load Docker images into the kind cluster:
kind load docker-image <image-name> --name nomnom-system -
Navigate to the Kubernetes manifests directory:
cd kubernetes -
Deploy the application:
kubectl apply -f . -
Monitor the deployment:
kubectl get pods -n nomnom-system kubectl get services -n nomnom-system
-
Access the application:
If using kind, forward the API Gateway port: kubectl port-forward service/api-gateway 8080:80 -n nomnom-system
Then open in your browser: http://localhost:8080
- Ensure all .env files are properly configured before deployment.
- For production:
- Use a managed Kubernetes service
- Store secrets using Kubernetes Secrets
- Use TLS, ingress, and monitoring tools.