2023-04-18 15:41:14 +02:00
|
|
|
# role server_docker-pixelfed
|
2022-12-05 09:18:52 +01:00
|
|
|
|
2023-06-29 14:49:21 +02:00
|
|
|
## access application
|
2023-06-27 14:36:07 +02:00
|
|
|
```bash
|
2023-06-29 14:49:21 +02:00
|
|
|
docker-compose exec -it application bash
|
|
|
|
```
|
|
|
|
|
|
|
|
## access database
|
|
|
|
```bash
|
|
|
|
docker-compose exec -it database mariadb -u pixelfed -p
|
|
|
|
```
|
|
|
|
|
|
|
|
## cleanup instagram imports
|
|
|
|
### mysql
|
|
|
|
```bash
|
|
|
|
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
|
|
|
|
```bash
|
|
|
|
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
|
2023-06-27 14:36:07 +02:00
|
|
|
```
|
|
|
|
|
2022-11-16 16:04:01 +01:00
|
|
|
## hard cleanup
|
|
|
|
```bash
|
2023-04-19 00:03:13 +02:00
|
|
|
docker-compose down
|
2022-11-16 16:04:01 +01:00
|
|
|
docker volume rm pixelfed_application_data pixelfed_database pixelfed_redis_data
|
|
|
|
```
|
2022-11-16 11:17:37 +01:00
|
|
|
|
2023-02-22 00:51:53 +01:00
|
|
|
## update
|
|
|
|
```bash
|
2023-04-26 11:52:11 +02:00
|
|
|
cd {{path_docker_compose_files}}pixelfed/ &&
|
2023-04-19 00:03:13 +02:00
|
|
|
docker-compose down &&
|
2023-03-27 13:17:40 +02:00
|
|
|
docker network prune -f &&
|
2023-04-19 00:03:13 +02:00
|
|
|
docker-compose pull &&
|
|
|
|
docker-compose build &&
|
|
|
|
docker-compose -p pixelfed up -d --force-recreate
|
2023-02-22 00:51:53 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## inspect
|
|
|
|
|
|
|
|
```bash
|
2023-04-19 00:03:13 +02:00
|
|
|
docker-compose ps -a
|
|
|
|
docker-compose logs -f
|
2023-02-22 00:51:53 +01:00
|
|
|
```
|
|
|
|
|
2022-11-16 11:17:37 +01:00
|
|
|
## further information
|
|
|
|
- https://hub.docker.com/r/zknt/pixelfed
|
|
|
|
- https://blog.pixelfed.de/2020/05/29/pixelfed-in-docker/
|