https://github.com/akka/akka-sample-cluster-docker-compose-java
https://github.com/akka/akka-sample-cluster-docker-compose-java
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/akka/akka-sample-cluster-docker-compose-java
- Owner: akka
- License: apache-2.0
- Created: 2018-05-25T07:25:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T13:54:30.000Z (almost 2 years ago)
- Last Synced: 2024-03-25T20:54:59.157Z (almost 2 years ago)
- Language: Java
- Size: 76.2 KB
- Stars: 9
- Watchers: 10
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
akka-docker-cluster-example
===========================
An example akka-cluster project with docker support. See [the blog post](http://blog.michaelhamrah.com/2014/11/clustering-akka-applications-with-docker-version-3/). Uses [SBT Native Packager](https://github.com/sbt/sbt-native-packager).
### How to Run
In SBT, just run `docker:publishLocal` to create a local docker container.
To run the cluster, run `docker-compose up`. This will create 3 nodes, a seed and two regular members, called `seed`, `c1`, and `c2` respectively.
While running, try opening a new terminal and (from the same directory) try things like `docker-compose down seed` and watch the cluster nodes respond.