Replace Storm Docker compose example with stack

This commit is contained in:
Elisey Zanko 2017-10-15 11:26:59 +05:00
parent 44c56841dc
commit 3992d8e658
No known key found for this signature in database
GPG Key ID: 08BBC369B144F2DF
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

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