2014-12-18 10:49:13 +01:00
|
|
|
# Automated Nginx reverse Proxy for Docker Webservices
|
|
|
|
|
2014-12-26 09:33:20 +01:00
|
|
|
## Requirements
|
2014-12-18 10:49:13 +01:00
|
|
|
|
2014-12-26 09:33:20 +01:00
|
|
|
1. installed nginx
|
2015-01-08 07:48:34 +01:00
|
|
|
2. adapted nginx configuration to include the directory of the generated config files
|
2014-12-26 09:33:20 +01:00
|
|
|
3. docker daemon must be configured to listen to TCP port
|
2015-01-08 07:48:34 +01:00
|
|
|
4. Executing user must be able to send HUG signals to ngix master process
|
|
|
|
|
|
|
|
## How it works
|
|
|
|
1. Creates a directory in */tmp* for the generated config files
|
|
|
|
2. Attaches to the stream of events from the Docker daemon
|
|
|
|
3. On every event, it scans all container for avaiable environment variable *PROXY_DATA*
|