- Add external volume mounting for database, uploads, and media files - Update Dockerfile to conditionally initialize database only if it doesn't exist - Move database to external /data volume for persistence across rebuilds - Configure production environment with proper FLASK_CONFIG - Add volume mappings for complete data persistence: * ./data:/data - Database persistence * ./uploads:/opt/moto_site/uploads - File uploads persistence * ./static/media:/opt/moto_site/static/media - Media files persistence - Create init script that skips database creation if DB already exists - Enable safe app updates without losing users, posts, or tracks This ensures all user data persists across Docker container rebuilds and app updates.
1.4 KiB
1.4 KiB