Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request gliderlabs#4 from topochan/patch-1
Browse files Browse the repository at this point in the history
Update Readme with udp ports for production
  • Loading branch information
progrium committed Jun 20, 2014
2 parents e4c7041 + 3f443e0 commit 7b94cd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 7b94cd0

Please sign in to comment.