From d0040fe428df332cbad0ed276b1c23389252544a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 31 Jul 2026 10:45:53 -0400 Subject: [PATCH] chore(deploy): add restart: unless-stopped to app container The app service in docker-compose.yml had no restart policy (defaults to 'no'), so if the process exited -- e.g. the watcher-leak panic fixed in the previous commit -- the container stayed down until a manual restart. Adding restart: unless-stopped makes the container self-recover from crashes or host reboots, while still honoring explicit 'docker compose down'. Defense-in-depth alongside the scanner leak/panic fix: even if a future unforeseen panic occurs, the app comes back automatically. --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 099eb17..987f90f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,7 @@ services: app: image: git.linuxhg.com/bookhoard/bookhoard:${IMAGE_TAG:-latest} container_name: bookhoard + restart: unless-stopped environment: # Database Configuration DATABASE_HOST: db