docker-pleroma/scripts/db-vacuum.sh

5 lines
167 B
Bash
Raw Permalink Normal View History

2023-08-13 05:50:00 +00:00
#!/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