From e2a92deec7efcab874c326b97b646312437015be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Angel=20Guill=C3=A9n?= Date: Thu, 19 Jun 2014 18:03:37 +0200 Subject: [PATCH 1/2] Update Readme with udp ports for production Added udp port to the Readme in production section, tested that without there will be errors -p 10.0.1.1:8301:8301/udp \ -p 10.0.1.1:8302:8302/udp \ --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84f1725..4681198 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,9 @@ Assuming we're on a host with a private IP of 10.0.1.1, we can start the first h $ docker run -d -h node1 -v /mnt:/data \ -p 10.0.1.1:8300:8300 \ -p 10.0.1.1:8301:8301 \ + -p 10.0.1.1:8301:8301/udp \ -p 10.0.1.1:8302:8302 \ + -p 10.0.1.1:8302:8302/udp \ -p 10.0.1.1:8400:8400 \ -p 10.0.1.1:8500:8500 \ -p 10.0.1.1:8600:53/udp \ @@ -86,7 +88,9 @@ On the second host, we'd run the same thing, but passing a `-join` to the first $ docker run -d -h node2 -v /mnt:/data \ -p 10.0.1.2:8300:8300 \ -p 10.0.1.2:8301:8301 \ - -p 10.0.1.2:8302:8302 \ + -p 10.0.1.1:8301:8301/udp \ + -p 10.0.1.1:8302:8302 \ + -p 10.0.1.1:8302:8302/udp \ -p 10.0.1.2:8400:8400 \ -p 10.0.1.2:8500:8500 \ -p 10.0.1.2:8600:53/udp \ @@ -97,7 +101,9 @@ And the third host with an IP of 10.0.1.3: $ docker run -d -h node3 -v /mnt:/data \ -p 10.0.1.3:8300:8300 \ -p 10.0.1.3:8301:8301 \ - -p 10.0.1.3:8302:8302 \ + -p 10.0.1.1:8301:8301/udp \ + -p 10.0.1.1:8302:8302 \ + -p 10.0.1.1:8302:8302/udp \ -p 10.0.1.3:8400:8400 \ -p 10.0.1.3:8500:8500 \ -p 10.0.1.3:8600:53/udp \ From 3f443e0818571a0870da842b329b6c2d171257f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Angel=20Guill=C3=A9n?= Date: Thu, 19 Jun 2014 18:33:21 +0200 Subject: [PATCH 2/2] missing udp ports --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a55d79e..67b02f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN opkg-install curl ADD ./config /config/ ONBUILD ADD ./config /config/ -EXPOSE 8300 8301 8302 8400 8500 53/udp +EXPOSE 8300 8301 8301/udp 8302 8302/udp 8400 8500 53/udp VOLUME ["/data"] ENTRYPOINT ["/bin/consul", "agent", "-config-dir=/config"]