Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Reel Quick - Added Docker Support

Date: 2026-04-15 Project: Reel Quick (FastAPI + Next.js + ARQ + Mongo + Redis + optional GPU workers) Context We containerized the stack and tried to run it in production mode with Docker Compose. Initial startup failed for…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Date: 2026-04-15


Project: Reel Quick (FastAPI + Next.js + ARQ + Mongo + Redis + optional GPU workers)






Context



We containerized the stack and tried to run it in production mode with Docker Compose.


Initial startup failed for both frontend build and backend runtime.






Issues Found




  1. Docker Compose path mismatches:

  2. Wrong env_file paths (docker/env/*.env expected but files were in docker/).

  3. Wrong nginx config mount path (./docker/nginx/nginx.conf while actual file was docker/nginx.conf).

  4. Build context was incorrect for a compose file located inside docker/.


  5. Frontend TypeScript build failure:


  6. location field type mismatch in frontend/app/create_video/page.tsx.


  7. Value inferred as string | undefined but state expects string | null.


  8. Backend container crash on startup:


  9. ModuleNotFoundError: No module named 'db'.


  10. backend/main.py used non-package imports like from db import ....







Root Causes




  • Relative paths in compose were not aligned with actual file layout.

  • Optional API response property (file_location?) was used directly inside state update.

  • Backend entrypoint (uvicorn backend.main:app) requires package-safe imports (backend.*).






Fixes Applied






Docker and Compose




  • Updated docker/docker-compose.yml:



    • build.context changed from . to ...


    • env_file paths corrected to backend.env and mongo.env.

    • nginx bind mount fixed to ./nginx.conf.






  • Updated docker/backend.env:


    • Added:

    • UPLOAD_FILES_LOCATION=/app/video_files

    • INPUT_FILES_LOCATION=/app/video_files






  • Added repo-root .dockerignore (Docker uses ignore file from build context root).


  • Synced docker/dockerignore entries.


  • Updated docker/README-docker-prod.md run commands.







Frontend




  • Fixed type narrowing in frontend/app/create_video/page.tsx:


    • Captured file_location into uploadedLocation.

    • Guarded before setFiles(...).

    • Used guaranteed string value in state update.











Backend




  • Converted backend imports to package imports in backend/main.py:



    • from db import ... -> from backend.db import ...

    • Similar conversion for logger, models, objects, workers.






  • Updated backend/objects/sound_prompt_preset.py import to backend.objects....







Commands Used for Deploy






# Stop all running containers (host-wide)
docker ps -q | xargs -r docker stop

# Start Reel Quick with GPU workers
cd /home/farhan/reel-quick/docker
docker compose --profile gpu up -d --build

# Verify
docker compose ps
docker compose logs -f api --tail=200









Validation Checklist





  • docker compose ps shows api, frontend, nginx, mongo, redis, workers as running.


  • api logs no longer show ModuleNotFoundError: No module named 'db'.

  • Frontend image builds successfully (npm run build passes in container build stage).

  • Upload endpoint works (POST /uploads).

  • Workers/control panel endpoints return expected data.






Key Takeaways




  • Keep compose file paths consistent with its directory and build context.

  • Use package-qualified imports for Python app modules in containerized runtimes.

  • Narrow optional API fields before state updates in strict TypeScript projects.

  • Add .dockerignore at the actual build context root to avoid bloated builds.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Reel Quick - Added Docker Support

Thematisch verwandte Begriffe: Reel, Quick, Added, Docker · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-18163 | IBM Financial Transaction Manager (FTM) for RedHat OpenShift could allow…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick