How do I change Mastodon to use Object Storage + Mailgun
Hi all! I just got Mastodon installed and working through the Linode marketplace, but it seems it defaults to using local SMTP (bleh) and local storage (bleh!). Obviously, I want to use Linode object storage and for SMTP I want to use my Mailgun account.
What is odd is the Mastodon from the marketplace seems to be a collection of docker containers. That's odd. Obviously I can set these items in the environmental variables, but I only have experience doing that in Plesk. I don't know how to change environment variables in the CLI and worried about deleting and recreating my container to see my work so far gone. It seems to use a persistent volume, but I'd still like to not screw it up.
If anyone has customized their Mastodon install, I would love tips on how to set these items up!
You would think since you give Mastodon setup wizard your Linode API key, it could create the object storage for you? At least ask if you want that or to use local storage.
Thank you.
1 Reply
We have a guide for using Object Storage with Mastodon that should help you to use that service with your Mastodon server.
I looked at our guide for Deploying the Marketplace Appand that doesn't address Docker at all. That said, our other guides for Mastodon are a lot more detailed about how to use Docker and Docker Compose, so I'd recommend reading through that resource and the linked pages within.
I also found information about setting up Mailgun, though it's for an older distro and the guide is deprecated. You can check out the configurations section of this guide to get some sense of what the environmental variables should look like. That said, I wouldn't recommend deploying an instance with Ubuntu 16.04 to use those. Instead, I'd recommend trying to figure out if any changes are needed to make that work for Debian 11, which is the distro used by our Marketplace App.
While it seems most of our documentation uses Docker, I also wanted to share this video I found about setting up Mastodon without Docker on Ubuntu 20.04. I haven't done any testing on that, but I did want to share that it seems doable and, depending on your own interests, may be a more desirable approach for you at this time.