feat: add restart-hook

This commit is contained in:
2026-10-21 10:43:08 +03:00
parent 0563ebfb10
commit ab2bbeef83
2 changed files with 23 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
started() {
docker inspect -f '{{.Name}} {{.State.Status}} started={{.State.StartedAt}}' $(docker compose ps -q postgres api)
}
started
docker compose restart postgres api
started