Dockerfile | ||
nginx_proxy.py | ||
nginx.conf | ||
README.md | ||
start.sh |
Automated Nginx reverse Proxy for Docker Webservices
Requirements
- installed nginx
- adapted nginx configuration to include the directory of the generated config files
- docker daemon must be configured to listen to TCP port
- Executing user must be able to send HUG signals to ngix master process
How it works
- Creates a directory in /tmp for the generated config files
- Attaches to the stream of events from the Docker daemon
- On every event, it scans all container for avaiable environment variable PROXY_DATA