From d5425aef30de8558fce5be137ddc3a4bb0d01f7b Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Fri, 8 Apr 2016 07:36:51 +0200 Subject: [PATCH] Updated diagramm --- README.md | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5d8a69c..91f58a9 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,29 @@ This image translates between plain http and https using haproxy. ## How it works ``` - +---------------------+ +--------+ - +---+ | +--+ | --->|443| docker_ssl_endpoint |<---->|80| target | - +---+ | +--+ | - +----------+----------+ +--------+ - | - | - +-----+-----+ - | cert data | - +-----------+ - + +-------------+ + | | + +----+ | + +--------->+8080| Tomcat | + | +----+ | + | | | + +-------------------------+ | +-------------+ + | | | + +---+ | +------------+-+ +-------------+ +--->+ 80| | | | | | + +---+ | +---+ docker nginx | +----+ | + | +----->+ 80| auto proxy +--------> 80| Wordpress | + +---+ | +---+ | +----+ | +--->+443| | | | | | + +---+ | +--+---------+-+ +-------------+ + | | | | + +---------+------------+--+ | | +-------------+ + | | | | | | + v | | | +-----+ Flask | + +--+-+ | +------+ | +-------->+5000|| | + |Cert| | |Docker| | +-----+ App | + |Data| +-->+Socket+<----+ | | + +----+ +------+ +-------------+ ``` The *docker_ssl_endpoint* Container listens on port 443 (expose this port for @@ -23,4 +35,4 @@ container's port 80. ## Starting the container -`docker run --name ssl_endpoint -v $PATH_TO_CERT_DATA:/data -p $IP:443:443 d --link nginx:target docker_ssl_endpoint` +`docker run --name ssl_endpoint -v $PATH_TO_CERT_DATA:/data -v /var/run/docker.sock:/var/run/docker.sock -p $IP:443:443 -p $IP:80:80 -d --link nginx:target docker_ssl_endpoint` \ No newline at end of file