This project contains the configuration needed to spin up a Redpanda node inside a Docker container, optimized for local development and automated deployment.
- SASL/SCRAM authentication enabled by default.
- Explicit topic creation during bootstrap (auto-create disabled).
- Configuration for Admin users (
super_user) and application users (producer_user/consumer_user). - ACLs configured to restrict access to the
testtopic. - Support for VS Code Dev Containers.
- Automated deployment with GitHub Actions.
By default, the following users and topics are created:
| User | Password | Role |
|---|---|---|
super_user |
secretpassword |
Administrator (all topics) |
producer_user |
producerpassword |
Producer for test topic |
consumer_user |
consumerpassword |
Consumer for test topic |
- Topic:
test(1 partition, 1 replica)
Ensure the network and volume exist:
docker network create siscom-network
docker volume create redpanda_dataCreate your .env file from the example:
cp .env.example .env(Optional) Edit .env to change default users and passwords.
Build and start:
docker-compose up -d --buildThe setup runs automatically! You can monitor progress with:
docker logs -f redpanda-0View cluster info:
docker exec -it redpanda-0 rpk cluster info \
-X user=super_user \
-X pass=secretpassword \
-X sasl.mechanism=SCRAM-SHA-256List topics:
docker exec -it redpanda-0 rpk topic list \
-X user=super_user \
-X pass=secretpassword \
-X sasl.mechanism=SCRAM-SHA-256jesuscabrera1984/redpanda-sasl-bootstrap