574 lines
12 KiB
Markdown
574 lines
12 KiB
Markdown
# Accessible Video Platform - Production Deployment Guide
|
||
|
||
## =<3D> Table of Contents
|
||
- [Overview](#overview)
|
||
- [Server Requirements](#server-requirements)
|
||
- [Pre-Deployment Checklist](#pre-deployment-checklist)
|
||
- [Initial Setup](#initial-setup)
|
||
- [Deployment Steps](#deployment-steps)
|
||
- [Post-Deployment Verification](#post-deployment-verification)
|
||
- [Maintenance & Operations](#maintenance--operations)
|
||
- [Troubleshooting](#troubleshooting)
|
||
|
||
---
|
||
|
||
## <<3C> Overview
|
||
|
||
This guide covers deploying the Accessible Video Processing Platform to a production server at `ai-sandbox.oliver.solutions`.
|
||
|
||
**Architecture:**
|
||
- **Frontend**: React SPA served by Apache at `/video-accessibility`
|
||
- **Backend API**: Docker container proxied by Apache at `/video-accessibility-back`
|
||
- **Worker**: Docker container for Celery background processing
|
||
- **MongoDB**: Docker container for database
|
||
- **Redis**: Docker container for queue/cache
|
||
|
||
**Server Details:**
|
||
- **Host**: ai-sandbox.oliver.solutions (GCP VM)
|
||
- **Resources**: 32GB RAM, 8 CPU cores
|
||
- **OS**: Linux with Apache 2.4+
|
||
- **SSL**: Wildcard certificate configured
|
||
|
||
---
|
||
|
||
## =<3D> Server Requirements
|
||
|
||
### Software Requirements
|
||
- Docker 20.10+
|
||
- Docker Compose 1.29+
|
||
- Apache 2.4+ with modules:
|
||
- `mod_rewrite`
|
||
- `mod_proxy`
|
||
- `mod_proxy_http`
|
||
- `mod_proxy_wstunnel`
|
||
- `mod_headers`
|
||
- Node.js 20+ and npm (for building frontend)
|
||
- Git (for code deployment)
|
||
|
||
### Apache Modules Setup
|
||
```bash
|
||
sudo a2enmod rewrite proxy proxy_http proxy_wstunnel headers
|
||
sudo systemctl restart apache2
|
||
```
|
||
|
||
### Directory Structure
|
||
```
|
||
/opt/accessible-video/
|
||
|