A supported fork of Mastodon that provides local posting and a wider range of content types.
Go to file
decentral1se 968052622f
feat: allow to customise toot char limit
2022-05-09 07:51:55 +02:00
.drone.yml Use new image namespace 2021-06-21 12:28:36 +02:00
.env.sample feat: allow to customise toot char limit 2022-05-09 07:51:55 +02:00
.gitignore Initial commit 2021-05-07 13:34:21 +02:00
README.md docs: use scripts interface 2022-05-09 07:51:47 +02:00
abra.sh some different examples of functions 2022-03-13 16:49:00 +01:00
compose.oidc.yml chore: release new v3.4.6 2022-02-15 10:57:06 +01:00
compose.yml feat: allow to customise toot char limit 2022-05-09 07:51:55 +02:00
entrypoint.sh.tmpl Use the right value [ci skip] 2021-07-01 18:29:34 +02:00

README.md

Hometown

A supported fork of Mastodon that provides local posting and a wider range of content types.

This repository is a copy of coop-cloud/mastodon but with a fresh README and some Hometown specific configuration. It seems like a good idea to keep the deployment separate since the apps may diverge in their deployment or configuration instructions at some point despite best wishes to remain as mainline Mastodon as possible.

Basic usage

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new mastodon
  4. Follow the secrets setup docs
  5. abra app YOURAPPDOMAIN config - be sure to change DOMAIN to something that resolves to your Docker swarm box
  6. abra app YOURAPPDOMAIN deploy to deploy the app

You'll need to run a docker exec -it <streaming-service-id> /bin/bash and do the following:

export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password)
bundle exec rake db:setup

Then, on your host (outside of the containers), you'll need to fix permissions for the volume (see #2):

chown -R 991:991 /var/lib/docker/volumes/<service-name>_app/_data

And finally, within the app container, create an admin account:

export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password)
tootctl accounts create <username> --email <email> --confirmed --role admin

Secrets setup

Mastodon expects secrets generated by specific tools. Uou can run these commands via the scripts interface with abra.

abra app cmd <domain> secrets --local