mkizka / mastodon-railway-template

An unofficial Mastodon template for Railway
https://railway.app/template/Pa4Fcc?referralCode=mveF9L
GNU Affero General Public License v3.0
6 stars 2 forks source link
activitypub fediverse mastodon railway

English | 日本語

mastodon-railway-template

A template for deploying Mastodon on Railway.

Note: This template only works with the Hobby plan or higher.

Usage

1. Click on "Deploy on Railway"

Deploy on Railway

2. Click "Configure" for each service and set the environment variables

You must click "Save Config" for all settings. Below are the instructions for configuring each service.

Mastodon-Streaming

No need to edit as it syncs with Mastodon's environment variables.

Mastodon

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.

3. Click "Deploy" after completing the settings

You can deploy when everything is marked as "Ready to be deployed" as shown in the image below.

4. Set Up a Domain (Optional)

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.

5. A few minutes later, click on the "Mastodon" service and access the URL

The URL can be found under "Deployments" as shown below.

That's it!

6. Sign in to the Owner Account

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.

Troubleshooting

You may encounter a message like this.

These actions can sometimes resolve the issue.

⚠️⚠️Caution⚠️⚠️