# Understanding the Installation of Mautic 5 via Docker

**URL:** <https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [May 14, 2024, 12:27pm UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063 "2024-05-14T12:27:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rushagencia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rushagencia/32/13084_2.png) [@rushagencia](https://forum.mautic.org/u/rushagencia)\
**Post date:** [May 14, 2024, 12:27pm UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063/1 "2024-05-14T12:27:11Z")

</div>

**Your software**  
My Mautic version is: 5.0.4  
My PHP version is: 8.1.28  
My Database type and version is: Mysql 8.0.36

**Your problem**  
My problem is:

Understanding the Installation of Mautic 5 via Docker

Hey guys! How are you?

I’m studying how to install Mautic 5 via Docker, and I came across examples of stacks for docker-compose on GitHub.

In these examples, a container is generated for the database, another for Mautic and two more, one for “mautic\_worker” and another for “mautic\_cron”.

Can anyone tell me what happened if I didn’t create the “mautic\_worker” and “mautic\_cron” container?

Another question, can I create these isolated containers, or does it need to be in the docker-compose stack?

Thanks for now  
Until!

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 18, 2024, 8:08am UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063/2 "2024-06-18T08:08:13Z")

</div>

If you don’t create the worker and cron containers then you don’t have any background jobs running. You’d have to enable background jobs in the web container.

The reason those 2 are a special containers is that they aren’t accessible from the internet. So traffic doesn’t affect their performance.

Another reason is that you can scale them easily. If you want to send emails 2 times faster, just create another worker container. 3 times? Another worker container. Done with the big send and want to save resources? Kill the 2 extra worker containers.

You can do everything in 1 container but then you lose some advantages as those above.

---

<div class="post-metadata">

**Author:** ![rushagencia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rushagencia/32/13084_2.png) [@rushagencia](https://forum.mautic.org/u/rushagencia)\
**Post date:** [June 18, 2024, 12:42pm UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063/3 "2024-06-18T12:42:14Z")

</div>

I understood. Thanks for the feedback.

What about updates and plugin installation, which are done via Composer, do I install Composer on the Mautic Web container or is it done another way?

Again, thanks for your help.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 18, 2024, 2:36pm UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063/4 "2024-06-18T14:36:42Z")

</div>

I’m also looking for this answer in [Composer missing in default docker image · Issue #242 · mautic/docker-mautic · GitHub](https://github.com/mautic/docker-mautic/issues/242). I pinged @mollux for help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [June 20, 2024, 2:36am UTC](https://forum.mautic.org/t/understanding-the-installation-of-mautic-5-via-docker/32063/5 "2024-06-20T02:36:50Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
