From 46f49f47ac14ace564a01572ae3228d2b1e2a677 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 1 Mar 2026 15:11:22 +0500 Subject: [PATCH] chore: replace host-path bind mount with named volume for static books Scraped content is now stored in the 'static_books' Docker named volume instead of a host bind mount, removing the dependency on STATIC_ROOT and the need to pre-create ./static/books on the host. --- docker-compose.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6081d55..750c534 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -71,13 +71,12 @@ services: ports: - "8080:8080" volumes: - # Mount the host static directory so scraped content is available outside - # the container. Create ./static/books on the host first if needed. - - "${STATIC_ROOT:-./static/books}:/app/static/books" + - static_books:/app/static/books healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"] interval: 15s timeout: 5s retries: 3 -volumes: {} +volumes: + static_books: