docker-pleroma/scripts/db-vacuum.sh
2023-08-13 01:50:00 -04:00

5 lines
167 B
Bash

#!/bin/sh
docker compose down
docker compose up db -d
docker exec -it pleroma_db psql -U pleroma -d pleroma -c 'vacuum(full,analyse,verbose);'
docker compose up web -d