https://engineering.carsguide.com.au/laravel-pub-sub-messaging-with-apache-kafka-3b27ed1ee5e8
anamhossain/php-kafka:latest
https://engineering.carsguide.com.au/laravel-pub-sub-messaging-with-apache-kafka-3b27ed1ee5e8
To connect to MySQL database from your main machine via Navicat or Sequel Pro, you should connect to 127.0.0.1
and port 3407
. The username and password for databases is laravel / laravel
.
host: 127.0.0.1
port: 3407
database: laravel
username: laravel
password: laravel
ENV settings:
KAFKA_BROKERS=kafka:9092
KAFKA_DEBUG=false
DB_CONNECTION=mysql
DB_HOST=kafka_producer_mysql_db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel