feat: Migrate data storage to PostgreSQL with schema setup, initialization script, and update documentation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user