Skip to content

Commit

Permalink
Merge pull request #134 from MAIF/issue-125
Browse files Browse the repository at this point in the history
Change kafka reference docker image
  • Loading branch information
larousso authored Jul 11, 2018
2 parents 1cac3f5 + 0f0b3a9 commit 6b31fc6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 23 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,29 @@ services:
image: mongo
ports:
- 27017:27017
zookeeper:
image: confluentinc/cp-zookeeper:3.2.1
ports:
- 32182:32181
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
kafka:
image: spotify/kafka
image: confluentinc/cp-kafka:3.2.1
ports:
- 2181:2181
- 9092:9092
- 29092:29092
depends_on:
- zookeeper
environment:
- "ADVERTISED_HOST=127.0.0.1"
- "ADVERTISED_PORT=9092"
- "AUTO.CREATE.TOPICS.ENABLE"
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:29092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
2 changes: 1 addition & 1 deletion izanami-server/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ izanami {
kafka {
host = "127.0.0.1"
host = ${?KAFKA_HOST}
port = "9092"
port = "29092"
port = ${?KAFKA_PORT}
servers = ${izanami.db.kafka.host}":"${izanami.db.kafka.port}
servers = ${?KAFKA_HOSTS_AND_PORTS}
Expand Down

0 comments on commit 6b31fc6

Please sign in to comment.