feat: make libraries volume path configurable via env variable

- Add LIBRARIES_HOST_PATH env variable for Docker volume mount path
- Update docker-compose.yml to use ${LIBRARIES_HOST_PATH:-../libraries}
- Update .env.example with new variable and documentation
- Allows users to customize the host path for their libraries folder
This commit is contained in:
2026-03-06 20:49:12 +01:00
parent 4f6833b42b
commit d3e2147982
2 changed files with 8 additions and 3 deletions

View File

@@ -44,7 +44,12 @@ MEILI_URL=http://meilisearch:7700
# Storage Configuration # Storage Configuration
# ============================================================================= # =============================================================================
# Path to libraries directory # Path to libraries directory inside container
# In Docker: leave as default /libraries # In Docker: leave as default /libraries
# For local dev: set to your local libraries folder path # For local dev: set to your local libraries folder path
LIBRARIES_ROOT_PATH=/libraries LIBRARIES_ROOT_PATH=/libraries
# Path to libraries directory on host machine (for Docker volume mount)
# Default: ../libraries (relative to infra/docker-compose.yml)
# You can change this to an absolute path on your machine
LIBRARIES_HOST_PATH=../libraries

View File

@@ -56,7 +56,7 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
volumes: volumes:
- ../libraries:/libraries - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
@@ -79,7 +79,7 @@ services:
ports: ports:
- "8081:8081" - "8081:8081"
volumes: volumes:
- ../libraries:/libraries - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully