Skip to content

Latest commit

Β 

History

History
53 lines (36 loc) Β· 1.03 KB

File metadata and controls

53 lines (36 loc) Β· 1.03 KB

πŸŒ€ Reverse Proxy App - πŸ“ Project Overview

βœ… Option 1: Run with docker-compose

▢️ Run the App docker-compose up --build

🌐 Access the App http://localhost

πŸ›‘ Stop the App docker-compose down

βœ… Option 2: Run with Docker Only

▢️ Build App Image docker build -t my-app-image .

πŸ” Run App Container docker run -d --name app -p 5000:5000 my-app-image

βš™οΈ Run NGINX Container docker run -d
--name nginx
--link app
-p 80:80
-v $(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro
nginx

βœ… Option 3: Run on Kubernetes

▢️ Apply Kubernetes Resources kubectl apply -f deployment.yaml kubectl apply -f service.yaml

πŸ” Get Service Info kubectl get service

πŸ“¦ TL;DR Command Summary

With Docker Compose

docker-compose up --build

With Docker only

docker build -t my-app-image . docker run -d --name app -p 5000:5000 my-app-image docker run -d --name nginx --link app -p 80:80 -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro nginx

With Kubernetes

kubectl apply -f deployment.yaml kubectl apply -f service.yaml