Skip to content

Instantly share code, notes, and snippets.

@jamesxsc
Created July 23, 2026 06:46
Show Gist options
  • Select an option

  • Save jamesxsc/06919ee82ea33e7ab1eb76cdbbacb4bb to your computer and use it in GitHub Desktop.

Select an option

Save jamesxsc/06919ee82ea33e7ab1eb76cdbbacb4bb to your computer and use it in GitHub Desktop.
Redpanda container config
redpanda:
image: redpandadata/redpanda:latest
container_name: redpanda
ports:
- "9092:9092"
- "29092:29092"
- "9644:9644"
command:
- redpanda
- start
- --overprovisioned
- --smp=1
- --memory=1G
- --reserve-memory=0M
- --kafka-addr=internal://0.0.0.0:9092,external://0.0.0.0:29092
- --advertise-kafka-addr=internal://redpanda:9092,external://localhost:29092
- --set auto_create_topics_enabled=true
- --set retention_ms=604800000 # 7 days
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment