ghost: migrated to v6 + Docker Compose setup

This commit is contained in:
2026-07-09 02:14:16 -07:00
parent 7f860d47b9
commit 1934ce36af
9 changed files with 144 additions and 96 deletions

11
ghost_server-update Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
mkdir -p "${HOME}"/update_logs
logFile=${HOME}/update_logs/$(date +%y_%m).log
{
echo -e "\n[+] updating ghost\n"
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml pull &&
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d --always-recreate-deps --remove-orphans &&
yes | sudo docker image prune -af
} &>>"$logFile"