Configure email templates with Directus template

penguinofwarPRO

9 months ago

At brody's suggestion I am using the Directus template to create a project https://railway.app/template/2fy758

It's going fine so far but I can't see how to connect to a volume to create a custom email template as it seems to need file system access on the attached volume.

https://docs.directus.io/self-hosted/email-templates.html

Is there a good way to do this in Railway? Can I connect to a volume disk or use e.g. the FileBrowser template and have it connected to the same Directus volume?

Previous thread: https://help.railway.app/feedback/support-docker-compose-30e9262f#solution

6 Replies

9 months ago

I shall ask the template creator.


penguinofwarPRO

9 months ago

Thanks, a workable answer to this would also solve the other problem I'm going to end up having of deploying custom and private extensions without going through the marketplace.


9 months ago

I have ideas on how you would do both, but I will converse with the template creator and get back to you with a written solution.


9 months ago

Hey, I haven't forgotten about this, I will circle back to this, this week!


penguinofwarPRO

9 months ago

Thank you!


9 months ago

Hey, back at this and i've written and tested a short guide, I can confirm this works as I see my edited reset password template in my inbox.

Do let me know if you have any extra questions on any of the steps!

Uploading Custom Email Templates

Note: This requires deploying the latest template again as the creator has made changes to the template to support the following actions.

1. Deploy the Filebrowser template into the same project that Directus resides within.

Make sure to set USE_VOLUME_ROOT to 1 when deploying.

2. Right-click on the volume of the Filebrowser service and disconnect it.

3. Do the same for the volume on the Directus service.

4. Mount the Directus volume to the Filebrowser service at the mount point /data.

5. Click Deploy.

6. Wait until the Filebrowser service becomes Active.

7. Open the public link for the Filebrowser service and log in.

Credentials can be found in the Filebrowser service variables.

8. Open the email folder and drag in your template files.

This is where you would also add your extensions, but those would go into the extensions folder instead.

9. Right-click on the volume of the Filebrowser service and disconnect it.

10. Mount the Directus volume back to the Directus service at the mount point /directus/data.

11. Click Deploy.

Done! Directus will redeploy and your templates should be in place, you can now delete the Filebrowser service and its stray volume.


Configure email templates with Directus template - Railway Help Station