Skip to content

This project sets up a Docker-based system with two backend services and an NGINX reverse proxy. It uses Docker Compose to orchestrate all services, with logging, path-based routing, and health checks.

Notifications You must be signed in to change notification settings

Varnit01-dev/DevopsAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Internship Assignment – NGINX Reverse Proxy with Docker Compose

This project sets up a Docker-based system with two backend services and an NGINX reverse proxy. It uses Docker Compose to orchestrate all services, with logging, path-based routing, and health checks.

Setup Instructions

Prerequisites:

  • Docker
  • Docker Compose

Start All Services:

docker-compose up --build

Access the Services

Once running, access them via browser or curl:

RouteDescription

http://localhost:8080/service2/ping Ping endpoint (Flask app)

Bonus Implemented

-Path-based routing via NGINX

-Request logging with timestamp and user-agent in access.log

-Health checks defined in docker-compose.yml.

-Modular Docker setup with separate Dockerfiles per service.

-Bridge networking used.

Logs

You can view logs using:

bash

docker-compose logs nginx

Example NGINX log format:

127.0.0.1 - [23/Jun/2025:10:45:21 +0000] "GET /service1/ping" 200 39 "curl/7.68.0"

About

This project sets up a Docker-based system with two backend services and an NGINX reverse proxy. It uses Docker Compose to orchestrate all services, with logging, path-based routing, and health checks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published