https://github.com/dmshvetsov/docker-nginx-proxy-example
Example of automated nginx proxy for Docker containers using docker-gen
https://github.com/dmshvetsov/docker-nginx-proxy-example
docker docker-gen example nginx-proxy
Last synced: 9 months ago
JSON representation
Example of automated nginx proxy for Docker containers using docker-gen
- Host: GitHub
- URL: https://github.com/dmshvetsov/docker-nginx-proxy-example
- Owner: dmshvetsov
- Created: 2018-08-23T13:22:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T13:22:44.000Z (over 7 years ago)
- Last Synced: 2025-02-16T15:15:27.107Z (11 months ago)
- Topics: docker, docker-gen, example, nginx-proxy
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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](https://github.com/jwilder/nginx-proxy)
## 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](http://a.localhost:8080), [b.localhost:8080](http://b.localhost:8080), [c.localhost:8080](http://c.localhost:8080), [d.localhost:8080](http://d.localhost:8080). The servers responds with plain text.