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.
This commit is contained in:
@@ -71,13 +71,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the host static directory so scraped content is available outside
|
- static_books:/app/static/books
|
||||||
# the container. Create ./static/books on the host first if needed.
|
|
||||||
- "${STATIC_ROOT:-./static/books}:/app/static/books"
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
|
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
volumes: {}
|
volumes:
|
||||||
|
static_books:
|
||||||
|
|||||||
Reference in New Issue
Block a user