feat: Migrate data storage to PostgreSQL with schema setup, initialization script, and update documentation

This commit is contained in:
ethan.chen
2026-01-08 11:14:35 +08:00
parent 62a9d01035
commit ca6fa71f38
16 changed files with 718 additions and 238 deletions

View File

@@ -8,16 +8,21 @@ services:
container_name: cloud-mcp
restart: unless-stopped
volumes:
# Mount data directory for persistent storage
- ./data:/app/data
# Mount .env file if exists (optional, can use environment variables instead)
- ./.env:/app/.env:ro
environment:
- NODE_ENV=production
# PostgreSQL connection (required)
# - DATABASE_URL=${DATABASE_URL}
# Add your environment variables here or use .env file
# - NAS_HOST=${NAS_HOST}
# - SERVER_HOST=${SERVER_HOST}
# etc.
# Note: This service requires an external PostgreSQL database.
# Set DATABASE_URL environment variable to connect to your PostgreSQL instance.
# For local development, you can uncomment the postgres service below:
# depends_on:
# - postgres
stdin_open: true
tty: true
# Health check (optional)