computer-playbook/roles/server_docker-pixelfed
2023-06-29 14:49:21 +02:00
..
handlers Refactored docker roles 2023-04-26 11:52:11 +02:00
meta Renamed server roles 2023-04-18 15:41:14 +02:00
tasks solved docker-compose naming bugs 2023-04-19 00:03:13 +02:00
templates Changed mysql to mariadb 2023-06-21 12:56:28 +02:00
vars Refactored docker roles 2023-04-26 11:52:11 +02:00
README.md Optimized pixelfed README.md file 2023-06-29 14:49:21 +02:00

role server_docker-pixelfed

access application

docker-compose exec -it application bash

access database

docker-compose exec -it database mariadb -u pixelfed -p

cleanup instagram imports

mysql

DELETE from import_posts WHERE 1;
DELETE from import_jobs WHERE 1;
DELETE from import_datas WHERE 1;
DELETE from statuses where created_at < "2022-12-01 22:15:39";
DELETE from media where deleted_at >= "2023-07-28 14:39:05";

files

docker-compose exec -u "www-data" application rm -rv "/var/www/storage/app/imports/1"
docker-compose exec -u "www-data" application php artisan schedule:run

hard cleanup

docker-compose down
docker volume rm pixelfed_application_data pixelfed_database pixelfed_redis_data

update

cd {{path_docker_compose_files}}pixelfed/ &&
docker-compose down &&
docker network prune -f &&
docker-compose pull &&
docker-compose build &&
docker-compose -p pixelfed up -d --force-recreate

inspect

docker-compose ps -a
docker-compose logs -f

further information