1
0
Эх сурвалжийг харах

Replace Storm Docker compose example with stack

Elisey Zanko 8 жил өмнө
parent
commit
3992d8e658
2 өөрчлөгдсөн 4 нэмэгдсэн , 3 устгасан
  1. 2 2
      storm/content.md
  2. 2 1
      storm/stack.yml

+ 2 - 2
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
 

+ 2 - 1
storm/docker-compose.yml → storm/stack.yml

@@ -1,4 +1,5 @@
-version: '2'
+version: '3.1'
+
 services:
     zookeeper:
         image: zookeeper