I wanna use kafka and rabbitmq at the same time in my symfony project. Any chance i can do it? I'm using docker-compose for my project
rabbitmq:
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq
ports:
- "5672:5672"
- "15672:15672"
kafdrop:
image: obsidiandynamics/kafdrop
ports:
- "9000:9000"
depends_on:
- kafka
kafka:
image: obsidiandynamics/kafka
ports:
- "2181:2181"
- "9092:9092"
and in my docker file
&& yum -y install ... \
... \
... \
librabbitmq-devel \
... \
librdkafka-devel \
&& pecl install amqp \
&& echo -e "extension=amqp.so" > /etc/php.ini \
&& pecl install rdkafka \
&& echo -e "extension=rdkafka.so" > /etc/php.ini \
looks like it's working, but sometimes I got messages like this:
You cannot use the "Symfony\Component\Messenger\Bridge\Amqp\Transport\Connection" as the "amqp" extension is not installed.
Any ideas on how to fix this?