From 4f14200578b20142097c8dacab990a3f5a64139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andre=CC=81n?= Date: Thu, 21 Jan 2016 12:07:59 +0100 Subject: [PATCH] =doc #18989 Make docs more googlable with regards to docker containers --- akka-docs/rst/intro/deployment-scenarios.rst | 12 ++++++++++++ akka-docs/rst/java/cluster-usage.rst | 4 ++-- akka-docs/rst/java/remoting.rst | 4 ++-- akka-docs/rst/scala/cluster-usage.rst | 4 ++-- akka-docs/rst/scala/remoting.rst | 4 ++-- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/akka-docs/rst/intro/deployment-scenarios.rst b/akka-docs/rst/intro/deployment-scenarios.rst index fca8c2cd69..f59ef00944 100644 --- a/akka-docs/rst/intro/deployment-scenarios.rst +++ b/akka-docs/rst/intro/deployment-scenarios.rst @@ -59,3 +59,15 @@ Use ``Ctrl-C`` to interrupt and exit the application. On a Windows machine you can also use the ``bin\akka-sample-main-scala.bat`` script. + +In a Docker container +===================== +You can use both Akka remoting and Akka Cluster inside of Docker containers. But note +that you will need to take special care with the network configuration when using Docker, +described here: :ref:`remote-configuration-nat` + +For an example of how to set up a project using Akka Cluster and Docker take a look at the +`"akka-docker-cluster" activator template`__. + +__ https://www.typesafe.com/activator/template/akka-docker-cluster + diff --git a/akka-docs/rst/java/cluster-usage.rst b/akka-docs/rst/java/cluster-usage.rst index c3b1f565dc..552223a183 100644 --- a/akka-docs/rst/java/cluster-usage.rst +++ b/akka-docs/rst/java/cluster-usage.rst @@ -35,8 +35,8 @@ settings, but with ``akka.cluster.ClusterActorRefProvider``. The ``akka.cluster.seed-nodes`` should normally also be added to your ``application.conf`` file. .. note:: - If you are using Docker or the nodes for some other reason have separate internal and external ip addresses - you must configure remoting according to :ref:`remote-configuration-nat-java` + If you are running Akka in a Docker container or the nodes for some other reason have separate internal and + external ip addresses you must configure remoting according to :ref:`remote-configuration-nat-java` The seed nodes are configured contact points for initial, automatic, join of the cluster. diff --git a/akka-docs/rst/java/remoting.rst b/akka-docs/rst/java/remoting.rst index c17a977656..25a6028c41 100644 --- a/akka-docs/rst/java/remoting.rst +++ b/akka-docs/rst/java/remoting.rst @@ -475,8 +475,8 @@ There are lots of configuration properties that are related to remoting in Akka. .. _remote-configuration-nat-java: -Remote configuration for NAT and Docker ---------------------------------------- +Akka behind NAT or in a Docker container +---------------------------------------- In setups involving Network Address Translation (NAT), Load Balancers or Docker containers the hostname and port pair that akka binds to will be different than the "logical" diff --git a/akka-docs/rst/scala/cluster-usage.rst b/akka-docs/rst/scala/cluster-usage.rst index 336e0987f2..cfa6bff926 100644 --- a/akka-docs/rst/scala/cluster-usage.rst +++ b/akka-docs/rst/scala/cluster-usage.rst @@ -29,8 +29,8 @@ settings, but with ``akka.cluster.ClusterActorRefProvider``. The ``akka.cluster.seed-nodes`` should normally also be added to your ``application.conf`` file. .. note:: - If you are using Docker or the nodes for some other reason have separate internal and external ip addresses - you must configure remoting according to :ref:`remote-configuration-nat` + If you are running Akka in a Docker container or the nodes for some other reason have separate internal and + external ip addresses you must configure remoting according to :ref:`remote-configuration-nat` The seed nodes are configured contact points for initial, automatic, join of the cluster. diff --git a/akka-docs/rst/scala/remoting.rst b/akka-docs/rst/scala/remoting.rst index 9f9739337c..cdc1b42e92 100644 --- a/akka-docs/rst/scala/remoting.rst +++ b/akka-docs/rst/scala/remoting.rst @@ -480,8 +480,8 @@ There are lots of configuration properties that are related to remoting in Akka. .. _remote-configuration-nat: -Remote configuration for NAT and Docker ---------------------------------------- +Akka behind NAT or in a Docker container +---------------------------------------- In setups involving Network Address Translation (NAT), Load Balancers or Docker containers the hostname and port pair that akka binds to will be different than the "logical"