1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

update redpanda

This commit is contained in:
kev 2024-08-05 17:43:48 +08:00
parent 67a22aafaa
commit 445ca5c629
2 changed files with 19 additions and 4 deletions

View File

@ -8,11 +8,12 @@ compatible. 10x faster. No ZooKeeper. No JVM!
$ docker compose up -d
$ docker compose exec redpanda bash
>>> rpk cluster info
>>> rpk topic create chat-room
>>> rpk topic alter-config chat-room --set replication.factor=3
>>> echo "Pandas are fabulous!" | rpk topic produce chat-room
>>> rpk topic consume chat-room --num 1
>>> rpk topic create test
>>> rpk topic alter-config test --set replication.factor=3
>>> echo "Pandas are fabulous!" | rpk topic produce test
>>> rpk topic consume test --num 1
>>> exit
$ curl 127.0.0.1:4195/post -F hello=world
$ curl 127.0.0.1:9644/public_metrics
```

View File

@ -24,3 +24,17 @@ services:
depends_on:
- redpanda
restart: unless-stopped
connect:
image: redpandadata/connect:4.32.1
command:
- run
- input.type=http_server
- output.type=kafka
- output.kafka.addresses=redpanda:9092
- output.kafka.topic=test
ports:
- "4195:4195"
depends_on:
- redpanda
restart: unless-stopped