Skip to content

How to Migrate to Local Redpanda From ConfluentΒΆ

If you don't run local kafka, do nothing.

graph TD
    A[Start] --> B{I run local kafka}
    B -->|yes| D[Proceed]
    B -->|no| Z[Do nothing]
    B -->|unsure| E[Check docker compose ps for kafka]

    E -->|nothing| Z
    E -->|something is there| D
  1. Make sure that you have old profile kafka enabled bash grep 'COMPOSE_PROFILES=' .env If not, enable it with COMPOSE_PROFILES=kafka.
  2. Remove old confluent containers
    docker compose rm -fsv kafka kafka-ui zookeeper
    docker volume rm -f trader_kafka_data trader_zoo-data trader_zoo-datalog trader_zookeeper_data trader_zookeeper_datalog 
    
  3. Remove kafka from COMPOSE_PROFILES and add redpanda
    # set this in your .env
    COMPOSE_PROFILES="redpanda"
    # check that the redpanda compose is included in your .env
    COMPOSE_FILE=docker-compose.yaml:docker-compose-kafka.yaml:docker-compose-redpanda.yaml
    
  4. Run make make ri
  5. visit http://trader.docker:8081