Awesome
Dip Kafka
Apache Kafka configuration for Dip infra services.
Usage
- 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