Skip to content

Commit

Permalink
added fig config for single broker setup
Browse files Browse the repository at this point in the history
* updated readme
  • Loading branch information
wurstmeister committed Feb 20, 2015
1 parent 92571de commit b323e65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ Destroy a cluster:

- ```fig stop```

##Note

The default fig.yml should be seen as a starting point. By default each broker will get a new port number and broker id on restart. Depending on your use case this might not be desirable. If you need to use specific ports and broker ids, modify the fig configuration accordingly, e.g.:

- ```fig -f fig-single-broker.yml up```


##Tutorial
Expand Down
14 changes: 14 additions & 0 deletions fig-single-broker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:0.8.2.0
ports:
- "9092:9092"
links:
- zookeeper:zk
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.59.103
volumes:
- /var/run/docker.sock:/var/run/docker.sock

0 comments on commit b323e65

Please sign in to comment.