# Issues with Docker Compose

**URL:** <https://forum.mautic.org/t/issues-with-docker-compose/31032>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [February 23, 2024, 1:48pm UTC](https://forum.mautic.org/t/issues-with-docker-compose/31032 "2024-02-23T13:48:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssadvisor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ssadvisor/32/11466_2.png) [@ssadvisor](https://forum.mautic.org/u/ssadvisor)\
**Post date:** [February 23, 2024, 1:48pm UTC](https://forum.mautic.org/t/issues-with-docker-compose/31032/1 "2024-02-23T13:48:12Z")

</div>

**Your software**  
My Mautic version is: mautic/mautic:5-apache  
My PHP version is: php:8.1-apache  
My Database type and version is: mysql:8.0

**Your problem**  
My problem is:

I’m using the docker compose file from [docker-mautic/examples/basic/docker-compose.yml at 6ebb1d6a2751fbb029d1e5ebb6c9ae076f55d47f · mautic/docker-mautic · GitHub](https://github.com/mautic/docker-mautic/blob/6ebb1d6a2751fbb029d1e5ebb6c9ae076f55d47f/examples/basic/docker-compose.yml)

The DB and WEB portions start properly but the WORKER is giving the following output in the terminal.

These errors are showing in the log:

mautic\_worker | 2024-02-18 23:37:31,560 INFO spawned: ‘messenger-consume-hit\_00’ with pid 429  
mautic\_worker |  
mautic\_worker | 2024-02-18 23:37:31,562 INFO success: messenger-consume-hit\_00 entered RUNNING state, process has stayed up for \> than 0 seconds (startsecs)  
mautic\_worker | // The worker will automatically exit once it has received a stop signal via  
mautic\_worker | // the messenger:stop-workers command.  
mautic\_worker |  
mautic\_worker | // Quit the worker with CONTROL-C.  
mautic\_worker |  
mautic\_worker | // Re-run the command with a -vv option to see logs about consumed messages.  
mautic\_worker |  
mautic\_worker |  
mautic\_worker | In SyncTransport.php line 37:  
mautic\_worker |  
mautic\_worker | You cannot receive messages from the Messenger SyncTransport.  
mautic\_worker |  
mautic\_worker |  
mautic\_worker | messenger:consume [-l|–limit LIMIT] [-f|–failure-limit FAILURE-LIMIT] [-m|–memory-limit MEMORY-LIMIT] [-t|–time-limit TIME-LIMIT] [–sleep SLEEP] [-b|–bus BUS] [–queues QUEUES] [–no-reset] [–] […]  
mautic\_worker |

Steps I have tried to fix the problem:  
NONE, I don’t know what should be tried.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [February 23, 2024, 2:39pm UTC](https://forum.mautic.org/t/issues-with-docker-compose/31032/2 "2024-02-23T14:39:08Z")

</div>

Until you do not set redis or some other transport to handle async message you cannot really run the messenger consume command.

You should make sure that you have async transport available, tell mautic about the async transport and only then run the consumer.

---

<div class="post-metadata">

**Author:** ![ssadvisor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ssadvisor/32/11466_2.png) [@ssadvisor](https://forum.mautic.org/u/ssadvisor)\
**Post date:** [March 10, 2024, 7:07pm UTC](https://forum.mautic.org/t/issues-with-docker-compose/31032/3 "2024-03-10T19:07:53Z")

</div>

Just getting back to this. Can you give me a guide on how to accomplish the changes to the docker compose file I linked to in the OP.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [March 10, 2024, 7:49pm UTC](https://forum.mautic.org/t/issues-with-docker-compose/31032/4 "2024-03-10T19:49:41Z")

</div>

In the same repo you have a couple variables you set in order to run workers to consume messages:

> **[GitHub - mautic/docker-mautic at 6ebb1d6a2751fbb029d1e5ebb6c9ae076f55d47f](https://github.com/mautic/docker-mautic/tree/6ebb1d6a2751fbb029d1e5ebb6c9ae076f55d47f?tab=readme-ov-file#mautic-behaviour-settings)**
>
> 6ebb1d6a2751fbb029d1e5ebb6c9ae076f55d47f

I would imagine all the required packages are already installed with docker image.

However before I would set and run the workers I would make sure that the right config is set in mautic app.

I have not used this image yet so I do not know the specific, but basically you will have to use docker service name in mautic async. settings.
