mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
add redpanda
This commit is contained in:
@@ -474,6 +474,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] prom/prometheus
|
- [x] prom/prometheus
|
||||||
- [x] prosody/prosody
|
- [x] prosody/prosody
|
||||||
- [x] redis/redis-stack
|
- [x] redis/redis-stack
|
||||||
|
- [x] redpandadata/redpanda
|
||||||
- [x] registry
|
- [x] registry
|
||||||
- [x] danielgatis/rembg
|
- [x] danielgatis/rembg
|
||||||
- [x] datarhei/restreamer
|
- [x] datarhei/restreamer
|
||||||
|
|||||||
19
redpanda/README.md
Normal file
19
redpanda/README.md
Normal file
@@ -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
|
||||||
80
redpanda/data/etc/redpanda.yaml
Normal file
80
redpanda/data/etc/redpanda.yaml
Normal file
@@ -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"
|
||||||
0
redpanda/data/var/coredump/.gitkeep
Normal file
0
redpanda/data/var/coredump/.gitkeep
Normal file
0
redpanda/data/var/data/.gitkeep
Normal file
0
redpanda/data/var/data/.gitkeep
Normal file
14
redpanda/docker-compose.yml
Normal file
14
redpanda/docker-compose.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user