forked from mtusi2026/mtusi2026lab2
feat: add restart-hook
This commit is contained in:
Executable
+9
@@ -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
|
||||
Reference in New Issue
Block a user