video-processor/tests/docker/docker-compose.integration.yml
Ryan Malloy 840bd34f29 🎬 Video Processor v0.4.0 - Complete Multimedia Processing Platform
Professional video processing pipeline with AI analysis, 360° processing,
and adaptive streaming capabilities.

 Core Features:
• AI-powered content analysis with scene detection and quality assessment
• Next-generation codec support (AV1, HEVC, HDR10)
• Adaptive streaming (HLS/DASH) with smart bitrate ladders
• Complete 360° video processing with multiple projection support
• Spatial audio processing (Ambisonic, binaural, object-based)
• Viewport-adaptive streaming with up to 75% bandwidth savings
• Professional testing framework with video-themed HTML dashboards

🏗️ Architecture:
• Modern Python 3.11+ with full type hints
• Pydantic-based configuration with validation
• Async processing with Procrastinate task queue
• Comprehensive test coverage with 11 detailed examples
• Professional documentation structure

🚀 Production Ready:
• MIT License for open source use
• PyPI-ready package metadata
• Docker support for scalable deployment
• Quality assurance with ruff, mypy, and pytest
• Comprehensive example library

From simple encoding to immersive experiences - complete multimedia
processing platform for modern applications.
2025-09-22 01:18:49 -06:00

101 lines
3.3 KiB
YAML

# Docker Compose configuration for integration testing
# Separate from main docker-compose.yml to avoid conflicts during testing
services:
# PostgreSQL for integration tests
postgres-integration:
image: postgres:15-alpine
environment:
POSTGRES_DB: video_processor_integration_test
POSTGRES_USER: video_user
POSTGRES_PASSWORD: video_password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5433:5432" # Different port to avoid conflicts
healthcheck:
test: ["CMD-SHELL", "pg_isready -U video_user -d video_processor_integration_test"]
interval: 5s
timeout: 5s
retries: 10
networks:
- integration_net
tmpfs:
- /var/lib/postgresql/data # Use tmpfs for faster test database
# Migration service for integration tests
migrate-integration:
build:
context: ../..
dockerfile: Dockerfile
target: migration
environment:
- PROCRASTINATE_DATABASE_URL=postgresql://video_user:video_password@postgres-integration:5432/video_processor_integration_test
depends_on:
postgres-integration:
condition: service_healthy
networks:
- integration_net
command: ["python", "-c", "
import asyncio;
from video_processor.tasks.migration import migrate_database;
asyncio.run(migrate_database('postgresql://video_user:video_password@postgres-integration:5432/video_processor_integration_test'))
"]
# Background worker for integration tests
worker-integration:
build:
context: ../..
dockerfile: Dockerfile
target: worker
environment:
- PROCRASTINATE_DATABASE_URL=postgresql://video_user:video_password@postgres-integration:5432/video_processor_integration_test
- WORKER_CONCURRENCY=2 # Reduced for testing
- WORKER_TIMEOUT=60 # Faster timeout for tests
depends_on:
postgres-integration:
condition: service_healthy
migrate-integration:
condition: service_completed_successfully
networks:
- integration_net
volumes:
- integration_uploads:/app/uploads
- integration_outputs:/app/outputs
command: ["python", "-m", "video_processor.tasks.worker_compatibility", "worker"]
# Integration test runner
integration-tests:
build:
context: ../..
dockerfile: Dockerfile
target: development
environment:
- DATABASE_URL=postgresql://video_user:video_password@postgres-integration:5432/video_processor_integration_test
- PROCRASTINATE_DATABASE_URL=postgresql://video_user:video_password@postgres-integration:5432/video_processor_integration_test
- PYTEST_ARGS=${PYTEST_ARGS:--v --tb=short}
volumes:
- .:/app
- integration_uploads:/app/uploads
- integration_outputs:/app/outputs
- /var/run/docker.sock:/var/run/docker.sock # Access to Docker for container management
depends_on:
postgres-integration:
condition: service_healthy
migrate-integration:
condition: service_completed_successfully
worker-integration:
condition: service_started
networks:
- integration_net
command: ["uv", "run", "pytest", "tests/integration/", "-v", "--tb=short", "--durations=10"]
volumes:
integration_uploads:
driver: local
integration_outputs:
driver: local
networks:
integration_net:
driver: bridge