diff --git a/README.md b/README.md index 15671c1..02f1e6d 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,7 @@ A collection of delicious docker recipes. - [x] prom/prometheus - [x] prosody/prosody - [x] redis/redis-stack +- [x] redpandadata/redpanda - [x] registry - [x] danielgatis/rembg - [x] datarhei/restreamer diff --git a/redpanda/README.md b/redpanda/README.md new file mode 100644 index 0000000..4cd8217 --- /dev/null +++ b/redpanda/README.md @@ -0,0 +1,19 @@ +redpanda +======== + +[Redpanda][1] is a streaming data platform for developers. Kafka API +compatible. 10x faster. No ZooKeeper. No JVM! + +```bash +$ 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 +>>> exit +$ curl 127.0.0.1:9644/public_metrics +``` + +[1]: https://github.com/redpanda-data/redpanda diff --git a/redpanda/data/etc/redpanda.yaml b/redpanda/data/etc/redpanda.yaml new file mode 100644 index 0000000..592d5f8 --- /dev/null +++ b/redpanda/data/etc/redpanda.yaml @@ -0,0 +1,80 @@ +# Copyright 2024 Redpanda Data, Inc. +# +# Use of this software is governed by the Business Source License +# included in the file licenses/BSL.md +# +# As of the Change Date specified in that file, in accordance with +# the Business Source License, use of this software will be governed +# by the Apache License, Version 2.0 + +# Redpanda configuration file + +redpanda: + # Data directory where all the files will be stored. + # This directory MUST reside on an ext4 or xfs partition. + data_directory: "/var/lib/redpanda/data" + + # The initial cluster nodes addresses + seed_servers: [] + + # Redpanda server + rpc_server: + address: "0.0.0.0" + port: 33145 + + # Redpanda server for other nodes to connect too + advertised_rpc_api: + address: "127.0.0.1" + port: 33145 + + # Kafka transport + kafka_api: + - address: "0.0.0.0" + port: 9092 + + # Kafka transport for other nodes to connect too + advertised_kafka_api: + - address: "127.0.0.1" + port: 9092 + + # Admin server includes metrics, and cluster management + admin: + address: "0.0.0.0" + port: 9644 + + # Skips most of the checks performed at startup (i.e. memory, xfs) + # not recomended for production use + developer_mode: true + +# Enable Pandaproxy on port 8082 +pandaproxy: {} + +# Enable Schema Registry on port 8081 +schema_registry: {} + +rpk: + # TLS configuration. + #tls: + # The path to the root CA certificate (PEM) + #truststore_file: "" + + # The path to the client certificate (PEM) + #cert_file: "" + + # The path to the client certificate key (PEM) + #key_file: "" + + # Available tuners + tune_network: false + tune_disk_scheduler: false + tune_disk_nomerges: false + tune_disk_irq: false + tune_fstrim: false + tune_cpu: false + tune_aio_events: false + tune_clocksource: false + tune_swappiness: false + enable_memory_locking: false + tune_coredump: false + + coredump_dir: "/var/lib/redpanda/coredump" diff --git a/redpanda/data/var/coredump/.gitkeep b/redpanda/data/var/coredump/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/redpanda/data/var/data/.gitkeep b/redpanda/data/var/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/redpanda/docker-compose.yml b/redpanda/docker-compose.yml new file mode 100644 index 0000000..7a9747f --- /dev/null +++ b/redpanda/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3.8" +services: + redpanda: + image: redpandadata/redpanda:v24.2.1 + ports: + - "8081:8081" + - "8082:8082" + - "9092:9092" + - "9644:9644" + - "33145:33145" + volumes: + - ./data/etc:/etc/redpanda + - ./data/var:/var/lib/redpanda + restart: unless-stopped