A template for deploying Mastodon on Railway.
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. | |
| LOCAL_DOMAIN | Set the domain to be used in Mastodon. Specify either a custom domain or a free domain available from Railway {any string}.up.railway.app. |
Automatically generated domain |
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.
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.
- Uploaded images are saved on a mounted volume with a capacity of 5GB. It is advisable to set up S3 or similar from the start if needed.
- Railway charges based on usage, so please avoid increasing follows excessively. You can also set usage limits in the settings.