From 3992d8e6589cc104c8a1431781faec2804d45f2a Mon Sep 17 00:00:00 2001 From: Elisey Zanko Date: Sun, 15 Oct 2017 11:26:59 +0500 Subject: [PATCH] Replace Storm Docker compose example with stack --- storm/content.md | 4 ++-- storm/{docker-compose.yml => stack.yml} | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) rename storm/{docker-compose.yml => stack.yml} (97%) diff --git a/storm/content.md b/storm/content.md index ca55963e2..a2e4f8580 100644 --- a/storm/content.md +++ b/storm/content.md @@ -48,9 +48,9 @@ $ docker run -it -v $(pwd)/topology.jar:/topology.jar %%IMAGE%% storm jar /topol $ docker run -d -p 8080:8080 --restart always --name ui --link some-nimbus:nimbus %%IMAGE%% storm ui ``` -## %%COMPOSE%% +## %%STACK%% -Run `docker-compose up` and wait for it to initialize completely. The Nimbus will be available at your host and port `6627`. +Run `docker stack deploy -c stack.yml storm` (or `docker-compose -f stack.yml up`) and wait for it to initialize completely. The Nimbus will be available at `http://swarm-ip:6627`, `http://localhost:6627`, or `http://host-ip:6627` (as appropriate). ## Configuration diff --git a/storm/docker-compose.yml b/storm/stack.yml similarity index 97% rename from storm/docker-compose.yml rename to storm/stack.yml index 4c33a2956..14b58a30f 100644 --- a/storm/docker-compose.yml +++ b/storm/stack.yml @@ -1,4 +1,5 @@ -version: '2' +version: '3.1' + services: zookeeper: image: zookeeper