Apache Kafka configuration for Dip infra services.
- Add a service to the application's
dip.yml.
infra:
kafka:
git: https://github.com/bibendi/dip-kafka.git- Add a network to the application's
docker-compose.yml.
networks:
kafka-net:
name: ${DIP_INFRA_NETWORK_KAFKA}
external: trueWhere DIP_INFRA_NETWORK_KAFKA is a special variable that is set by Dip.
- Add a
KAFKA_URLenvironment variable and thekafka-netnetwork to a Docker Compose service.
services:
app:
environment:
BROKER_URL: kafka:9092
networks:
- default
- kafka-net- Start infra services.
dip infra up- Start the app
dip up