fix: respect NODE_DB_PATH environment variable in Docker (fixes #40)
- Fixed docker-entrypoint.sh to use NODE_DB_PATH instead of hardcoded paths - Added log_message() helper to prevent stdio mode output corruption - Fixed directory creation race condition with proper ownership - Added path validation to ensure NODE_DB_PATH ends with .db - Updated rebuild.ts to respect NODE_DB_PATH environment variable - Added comprehensive documentation for custom database paths - Bumped version to 2.7.16 The bug was caused by hardcoded /app/data/nodes.db paths in the Docker entrypoint script that ignored the NODE_DB_PATH environment variable. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
# Database Configuration
|
||||
# For local development: ./data/nodes.db
|
||||
# For Docker: /app/data/nodes.db
|
||||
# Custom paths supported in v2.7.16+ (must end with .db)
|
||||
NODE_DB_PATH=./data/nodes.db
|
||||
|
||||
# Logging Level (debug, info, warn, error)
|
||||
|
||||
Reference in New Issue
Block a user