# role friendica ## Delete all docker exec -i central-mariadb mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;"; docker compose down; rm -rv /mnt/hdd/data/docker/volumes/friendica_data; docker volume rm friendica_data ## Reset Database ### Manual DROP DATABASE friendica; CREATE DATABASE friendica; exit; ### Automatic DB_ROOT_PASSWORD="your_root_password" docker exec -i central-mariadb mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;" ## Enter application docker compose exec -it application sh ## debugging ## Check environment variables docker compose exec -it application printenv ls -la /var/lib/docker/volumes/friendica_data/_data/ ## autoinstall docker compose exec --user www-data -it application bin/console autoinstall ## reinitialisation ### docker ### full docker-compose up -d --force-recreate && sleep 2; docker compose exec --user www-data -it application bin/console autoinstall; ### info ```bash cat /var/lib/docker/volumes/friendica_data/_data/config/local.config.php ## Check environment variables docker compose exec -it application printenv ``` ## More information - https://hub.docker.com/_/friendica - https://wiki.friendi.ca/docs/install