Mautic's docker image does not works with volume

10 months ago

I've been trying to create a Mautic service on Railway. I've added 3 mautic/mautic with the proper roles. When I attached a volume, mautic stop working; without volume, it's work fine. Can you help me?

Error: [Fri Jul 11 15:54:19.431937 2025] [autoindex:error] [pid 18:tid 18] [client 100.64.0.2:60154] AH01276: Cannot serve directory /var/www/html/docroot/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive

Solved$10 Bounty

5 Replies

Railway
BOT

10 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


10 months ago

What did you set as the mount path of the volume?


medim

What did you set as the mount path of the volume?

10 months ago

/var/www/html


sim
FREE

10 months ago

Here is a mautic template https://railway.com/deploy/9yIPIs

Could you try to deploy this and check the expected mount paths that work?


idiegea21
HOBBY

10 months ago

when you mount a volume to /var/www/html, you overwrite the existing contents of that directory, including the actual Mautic files like index.php.

Instead, mount the volume to a subdirectory such as /var/www/html/media or /var/www/html/uploads, where Mautic stores user-generated content like campaign files or uploaded images.

this willpreserves the core application files while still allowing persistent storage for your data.


Status changed to Solved medim about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...