WillStreeter / ws-nginx-demo

Docker image using NGINX as a proxy for front-end container and back-end nodejs container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ws-nginx-demo

A instance of NGINX used in the ws-dev-docker-example serving as proxy for 2 other containers

Architecture:

This repository is part of a larger effort to expound on the strategies and approaches delineated in the article Practical Web Development and Architecture. NGINX is used as proxy, to navigate request between two docker containers:

The ngin.conf applies the request URI to one of the above containers base an parameter in the URI:

  • location/

  • location/api

    • proxy_pass http:ws-node-demo:8080/api
  • location/docs

    • proxy_pass http:ws-node-demo:8080/docs

The proxy_pass are based on the named services (containers implementations) in ws-dev-docker-example/docker-compose.yml

Alt Text

About

Docker image using NGINX as a proxy for front-end container and back-end nodejs container


Languages

Language:Nginx 93.3%Language:Makefile 6.7%