Skip to content

Commit 71504dc

Browse files
author
Adam Kunicki
committed
updated docs and configs to use docker-compose instead of deprecated fig tool.
1 parent dc17cb6 commit 71504dc

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ kafka-docker
33

44
Dockerfile for [Apache Kafka](http://kafka.apache.org/)
55

6-
The image is available directly from https://index.docker.io
6+
The image is available directly from https://registry.hub.docker.com/
77

88
##Pre-Requisites
99

10-
- install fig [http://www.fig.sh/install.html](http://www.fig.sh/install.html)
11-
- modify the ```KAFKA_ADVERTISED_HOST_NAME``` in ```fig.yml``` to match your docker host IP (Note: Do not use localhost or 127.0.0.1 as the host ip if you want to run multiple brokers.)
12-
- if you want to customise any Kafka parameters, simply add them as environment variables in ```fig.yml```, e.g. in order to increase the ```message.max.bytes``` parameter set the environment to ```KAFKA_MESSAGE_MAX_BYTES: 2000000```. To turn off automatic topic creation set ```KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'```
10+
- install docker-compose [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)
11+
- modify the ```KAFKA_ADVERTISED_HOST_NAME``` in ```docker-compose.yml``` to match your docker host IP (Note: Do not use localhost or 127.0.0.1 as the host ip if you want to run multiple brokers.)
12+
- if you want to customise any Kafka parameters, simply add them as environment variables in ```docker-compose.yml```, e.g. in order to increase the ```message.max.bytes``` parameter set the environment to ```KAFKA_MESSAGE_MAX_BYTES: 2000000```. To turn off automatic topic creation set ```KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'```
1313

1414
##Usage
1515

1616
Start a cluster:
1717

18-
- ```fig up -d ```
18+
- ```docker-compose up -d ```
1919

2020

2121
Add more brokers:
2222

23-
- ```fig scale kafka=3```
23+
- ```docker-compose scale kafka=3```
2424

2525
Destroy a cluster:
2626

27-
- ```fig stop```
27+
- ```docker-compose stop```
2828

2929
##Note
3030

31-
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-single-broker.yml](https://github.com/wurstmeister/kafka-docker/blob/master/fig-single-broker.yml):
31+
The default ```docker-compose.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 docker-compose condocker-composeuration accordingly, e.g. [docker-compose-single-broker.yml](https://github.com/wurstmeister/kafka-docker/blob/master/docker-compose-single-broker.yml):
32+
33+
- ```docker-compose -f docker-compose-single-broker.yml up```
3234

33-
- ```fig -f fig-single-broker.yml up```
34-
3535

3636
##Tutorial
3737

File renamed without changes.

fig.yml docker-compose.yml

File renamed without changes.

0 commit comments

Comments
 (0)