etsy-finance-tracker/server/.env.production
dlawler489 6038535896 Add Docker containerization support
Features:
- Multi-stage Dockerfile for optimized production builds
- Docker Compose configuration with health checks
- Health check endpoint for container monitoring
- Production environment configuration template
- Comprehensive deployment guide for Mac Mini
- Docker ignore file for efficient build context
- Security: Non-root user, proper signal handling
- Persistence: Data directory volume mounting
- Performance: Alpine Linux base, optimized layers
- Future-ready: MongoDB service configuration (commented)

Deployment:
- Simple 'docker-compose up' deployment
- Automatic health monitoring and restart policies
- Persistent data storage with volume mounts
- Port configuration and environment customization
- Complete troubleshooting and management guide
2026-04-20 19:54:37 +10:00

34 lines
No EOL
689 B
Text

# Production Environment Configuration
# Copy this file to .env and customize for your deployment
# Application
NODE_ENV=production
PORT=3000
# Client Configuration
CLIENT_URL=http://localhost:3000
# Database (when using MongoDB)
# MONGODB_URI=mongodb://mongodb:27017/etsy-tracker
# DB_NAME=etsy-tracker
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_EXPIRES_IN=7d
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# File Upload Limits
MAX_FILE_SIZE=10mb
UPLOAD_PATH=/app/uploads
# Logging
LOG_LEVEL=info
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Security
BCRYPT_SALT_ROUNDS=12