A template for deploying Mastodon on Railway.
Note: This template only works with the Hobby plan or higher.
You must click "Save Config" for all settings. Below are the instructions for configuring each service.
No need to edit as it syncs with Mastodon's environment variables.
Variable Name | Description | Default |
---|---|---|
OWNER_USERNAME | Specify the username for the admin account to be created at startup. | |
OWNER_EMAIL | Specify the email address for the admin account to be created at startup. It won't be used until the mail server is set up. |
No other settings need to be edited.
For more details on each setting, refer to the official documentation.
You can deploy when everything is marked as "Ready to be deployed" as shown in the image below.
You can set up a domain from the "Settings". You can use a free domain from Railway, or your own custom domain.
After setting the domain, be sure to click "Redeploy".
Note: If you change the domain of Mastodon-Streaming, make sure to change it before changing Mastodon. Then, redeploy both in the order you changed them.
The URL can be found under "Deployments" as shown below.
That's it!
You can search for the service's execution logs in "Observability" at the top of the project screen.
By searching for "New Password", you can find the password for the Owner account created at the start of Mastodon.
You can use this password and email address to log in to the admin account from the login screen.
You may encounter a message like this.
These actions can sometimes resolve the issue.