mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
370 stars 278 forks source link

Redis batteries not inncluded in docker image #252

Open dudeskeeroo opened 8 months ago

dudeskeeroo commented 8 months ago

I'm attempting to use Redis as the queuing backend for Mautic 5. When I specify the redis settings in the queue configuration, it informs me that:

The test message could not be sent due to the following error: 'Class "Redis" not found'.

image

The docker mautic build file doesn't contain the string "redis", but there are lib references in there for other schemes such as amqp.

Can Redis support be easily added to the mautic 5 docker image?

mollux commented 8 months ago

@dudeskeeroo

that's correct, currently the Docker images contain the exact same dependencies as the Mautic project.
Redis as messenger is not part of this, so this image has no out-of-the-box support for it. This is something that can be discussed in the main Mautic project

Currently the way forward is to build a variant of the image that contains both the PHP redis extension and the composer dependency to be able to queue.

It makes sebse to provide an example on how to do that, so if you can and want to contribute, please make a PR that extends the image with both the PHP extension as the messenger redis dependency