1
0
Fork
You've already forked Mastodon
0
Meine Anleitung
  • Shell 100%
2026年01月15日 23:30:38 +01:00
.env.production.sample Commit halt 2026年01月15日 23:30:38 +01:00
.gitignore Commit halt 2026年01月15日 23:30:38 +01:00
docker-compose.yml Commit halt 2026年01月15日 23:30:38 +01:00
LICENSE Commit halt 2026年01月15日 23:30:38 +01:00
mastodon.conf Commit halt 2026年01月15日 23:30:38 +01:00
mastodon.webp Commit halt 2026年01月15日 23:30:38 +01:00
README.md Commit halt 2026年01月15日 23:30:38 +01:00
remove_mastodon.sh Commit halt 2026年01月15日 23:30:38 +01:00
setup_mastodon.sh Commit halt 2026年01月15日 23:30:38 +01:00
update_mastodon.sh Commit halt 2026年01月15日 23:30:38 +01:00

Meine Anleitung für Mastodon auf dem LibreWorkspace

Befehle

Repository klonen auf den Server

Anlegen von den Ordnern

mkdir -p /root/mastodon
mkdir -p /root/mastodon/postgres14 /root/mastodon/redis /root/mastodon/public/system
chown -R 70:70 /root/mastodon/postgres14
chown -R 999:999 /root/mastodon/redis
chown -R 991:991 /root/mastodon/public/system

Kopieren der Docker Compose und .env datei

cp docker-compose.yml /root/mastodon/docker-compose.yml
cp .env.production.sample /root/mastodon/.env.production

Berechtigung der .env-Datei vergeben

chmod 640 /root/mastodon/.env.production

Replace Variables

envsubst < docker-compose.yml > /root/mastodon/docker-compose.yml

Verzeichnis wechseln

cd /root/mastodon

Images herunterladen

docker pull

Secrets erstellen

SECRET_KEY_BASE

docker compose run --rm web bundle exec rails secret

Web Push Keys

docker compose run --rm web bundle exec rails mastodon:webpush:generate_vapid_key

Encryption Secrets

docker compose run --rm web bundle exec bin/rails db:encryption:init

Einfügen der Secrets in die Bereiche der .env.production Datei sowie anpassen der LOCAL_DOMAIN


docker compose up -d db
docker compose exec db psql -U postgres -c "CREATE USER mastodon WITH CREATEDB;"
docker compose run --rm web bundle exec rails db:setup
docker compose -f /root/mastodon/docker-compose.yml up -d


Anlegen des Admins

docker compose run --rm web tootctl accounts create DEIN_NAME --email DEINE@EMAIL.DE --confirmed
docker compose run --rm web tootctl accounts modify DEIN_NAME --role Owner
docker compose run --rm web tootctl accounts approve DEIN_NAME
docker compose run --rm web tootctl accounts modify DEIN_NAME --password NEUES_PASSWORT