Mautic's docker image does not works with volume
moigamijunior
PROOP

5 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

$10 Bounty

5 Replies

Railway
BOT

5 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!


medim
MODERATOR

5 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?

moigamijunior
PROOP

5 months ago

/var/www/html


sim
FREE

5 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

5 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.


Loading...