Skip to content

Example of automated nginx proxy for Docker containers using docker-gen

Notifications You must be signed in to change notification settings

dmshvetsov/docker-nginx-proxy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Docker nginx-proxy example

nginx-proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.

See Automated Nginx Reverse Proxy for Docker for why you might want to use this.

source

Run

In order to run example execute in root of the cloned repo:

$ docker-compose up

It will run 4 node.js HTTP servers a.localhost:8080, b.localhost:8080, c.localhost:8080, d.localhost:8080. The servers responds with plain text.

About

Example of automated nginx proxy for Docker containers using docker-gen

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published