Skip to content

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

Notifications You must be signed in to change notification settings

WillStreeter/ws-nginx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published