Skip to content

Commit

Permalink
Add link to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
stavshamir committed Jun 28, 2020
1 parent cd4cce6 commit 0a46e7b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ If not, try the following endpoint: ```localhost:8080/asyncapi/docs``.

### Example Project
An example project can be found [here](https://github.com/stavshamir/springwolf/tree/master/springwolf-example).
You can also run the provided [docker-compose]() file and check ```localhost:8080/asyncapi-ui.html```.
You can also run the provided [docker-compose](./docker-compose.yml) file and check ```localhost:8080/asyncapi-ui.html```.
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3'
services:
app:
image: stavshamir/springwolf:0.0.1
links:
- kafka
environment:
BOOTSTRAP_SERVER: kafka:29092
ports:
- "8080:8080"
depends_on:
- kafka
- zookeeper

zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME:

kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

0 comments on commit 0a46e7b

Please sign in to comment.