Home

Awesome

Dip Kafka

Apache Kafka configuration for Dip infra services.

Usage

  1. Add a service to the application's dip.yml.
infra:
  kafka:
    git: https://github.com/bibendi/dip-kafka.git
  1. Add a network to the application's docker-compose.yml.
networks:
  kafka-net:
    name: ${DIP_INFRA_NETWORK_KAFKA}
    external: true

Where DIP_INFRA_NETWORK_KAFKA is a special variable that is set by Dip.

  1. Add a KAFKA_URL environment variable and the kafka-net network to a Docker Compose service.
services:
  app:
    environment:
      BROKER_URL: kafka:9092
    networks:
      - default
      - kafka-net
  1. Start infra services.
dip infra up
  1. Start the app
dip up