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: true
Where DIP_INFRA_NETWORK_KAFKA
is a special variable that is set by Dip.
- Add a
KAFKA_URL
environment variable and thekafka-net
network 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