mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update redpanda
This commit is contained in:
parent
67a22aafaa
commit
445ca5c629
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user