From: Alex Dong Date: Mon, 24 Mar 2014 21:39:34 +0000 (+1300) Subject: Add examples to bind to only one network interface X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8c34114aab029737b591b9f00e29fec1d72172d;p=discourse_docker.git Add examples to bind to only one network interface Add `- "127.0.0.1:20080:80"` to `expose` example as well as the full docker port binding syntax. --- diff --git a/README.md b/README.md index de611ea..e408a95 100644 --- a/README.md +++ b/README.md @@ -99,9 +99,10 @@ This template is "composed" out of all these child templates, this allows for a ``` expose: - "2222:22" + - "127.0.0.1:20080:80" ``` -Expose port 22 inside the container on port 2222 on ALL local host interfaces. +Expose port 22 inside the container on port 2222 on ALL local host interfaces. In order to bind to only one interface, you may specify the host's IP address as `([:[host_port]])|():][/udp]` as defined in the [docker port binding documentation](http://docs.docker.io/en/latest/use/port_redirection/) #### volumes: