Skip to content

Commit 0a46e7b

Browse files
committed
Add link to docker compose
1 parent cd4cce6 commit 0a46e7b

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ If not, try the following endpoint: ```localhost:8080/asyncapi/docs``.
116116

117117
### Example Project
118118
An example project can be found [here](https://github.com/stavshamir/springwolf/tree/master/springwolf-example).
119-
You can also run the provided [docker-compose]() file and check ```localhost:8080/asyncapi-ui.html```.
119+
You can also run the provided [docker-compose](./docker-compose.yml) file and check ```localhost:8080/asyncapi-ui.html```.

docker-compose.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: '3'
2+
services:
3+
app:
4+
image: stavshamir/springwolf:0.0.1
5+
links:
6+
- kafka
7+
environment:
8+
BOOTSTRAP_SERVER: kafka:29092
9+
ports:
10+
- "8080:8080"
11+
depends_on:
12+
- kafka
13+
- zookeeper
14+
15+
zookeeper:
16+
image: confluentinc/cp-zookeeper:latest
17+
environment:
18+
ZOOKEEPER_CLIENT_PORT: 2181
19+
ZOOKEEPER_TICK_TIME:
20+
21+
kafka:
22+
image: confluentinc/cp-kafka:latest
23+
depends_on:
24+
- zookeeper
25+
environment:
26+
KAFKA_BROKER_ID: 1
27+
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
28+
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092
29+
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
30+
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
31+
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

0 commit comments

Comments
 (0)