Meine Anleitung
|
|
||
|---|---|---|
| .env.production.sample | Commit halt | |
| .gitignore | Commit halt | |
| docker-compose.yml | Commit halt | |
| LICENSE | Commit halt | |
| mastodon.conf | Commit halt | |
| mastodon.webp | Commit halt | |
| README.md | Commit halt | |
| remove_mastodon.sh | Commit halt | |
| setup_mastodon.sh | Commit halt | |
| update_mastodon.sh | Commit halt | |
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