From 32a1b5dc480fe02ddf14930060e7c39e765987b3 Mon Sep 17 00:00:00 2001 From: Elisey Zanko Date: Tue, 3 May 2016 22:38:28 +0500 Subject: [PATCH] Added docker-compose.yml --- storm/content.md | 4 ++++ storm/docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 storm/docker-compose.yml diff --git a/storm/content.md b/storm/content.md index 6e6086a1f..9f9a10077 100644 --- a/storm/content.md +++ b/storm/content.md @@ -34,6 +34,10 @@ Assuming you have `storm-starter-topologies-1.0.0.jar` in the current directory. $ docker run -it --net container:nimbus -v $(pwd)/storm-starter-topologies-1.0.0.jar:/topology.jar 31z4/storm:1.0.0 jar /topology.jar org.apache.storm.starter.WordCountTopology topology +## %%COMPOSE%% + +Run `docker-compose up` and wait for it to initialize completely. The Nimbus will be available at your host and port `6627`. + ## Configuration This image uses [default configuration](https://github.com/apache/storm/blob/v1.0.0/conf/defaults.yaml) of the Apache Storm. There are two main ways to change it. diff --git a/storm/docker-compose.yml b/storm/docker-compose.yml new file mode 100644 index 000000000..01ff8f00e --- /dev/null +++ b/storm/docker-compose.yml @@ -0,0 +1,21 @@ +version: '2' +services: + zookeeper: + image: jplock/zookeeper:3.4.8 + restart: always + + nimbus: + image: 31z4/storm:1.0.0 + command: nimbus -c storm.zookeeper.servers="[\"zookeeper\"]" -c nimbus.host="nimbus" + depends_on: + - zookeeper + restart: always + ports: + - 6627:6627 + + supervisor: + image: 31z4/storm:1.0.0 + command: supervisor -c storm.zookeeper.servers="[\"zookeeper\"]" -c nimbus.host="nimbus" + depends_on: + - nimbus + restart: always