computer-playbook/roles/docker-mastodon
2024-01-04 20:57:02 +01:00
..
tasks Implemented central database for matrix and mastodon 2024-01-04 20:57:02 +01:00
templates Implemented central database for matrix and mastodon 2024-01-04 20:57:02 +01:00
vars Implemented vars, tasks and templates for central database setup until mastodon role 2024-01-02 21:13:34 +01:00
README.md Implemented central database for matrix and mastodon 2024-01-04 20:57:02 +01:00

docker mastodon

create configuration

    docker-compose run --rm web bundle exec rake mastodon:setup

Setup with existing configuration

docker-compose run --rm web bundle exec rails db:migrate

cleanup

cd {{path_docker_compose_instances}}mastodon/
docker-compose down
docker volume rm mastodon_data mastodon_database mastodon_redis
cd {{path_docker_compose_instances}} &&
rm -vR {{path_docker_compose_instances}}mastodon

access terminal

docker-compose exec -it web /bin/bash

set rights

After setting up mastodon you need to give the rights

docker-compose exec -it -u root web chown -R 991:991 public

further information