Рабочий пайплайн: YouTube -> транскрипция -> выжимка -> Postgres

- новый api/: /pipeline/process (yt-dlp, субтитры или Vosk, LLM/экстрактивная
  суммаризация), /videos, /llm; старый код перенесён в api_legacy/
- web/: Flet UI (flet 0.28.3 + flet-web, порт 8550)
- Dockerfile.api: ffmpeg слоем из mwader/static-ffmpeg, pip с кэш-маунтом
- requirements/pyproject: убраны moviepy, imageio-ffmpeg, битый asyncio
- README с инструкцией запуска и загрузкой Vosk-модели

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jze9
2026-07-14 11:12:46 +05:00
parent 564c9c2d2f
commit 2697e01714
51 changed files with 2313 additions and 284 deletions

View File

@@ -1,20 +1,4 @@
services:
#bot:
# build:
# context: .
# dockerfile: Dockerfile.bot
# container_name: telegram_bot
# restart: no
# env_file:
# - .env
# environment:
# - BOT_TOKEN=${BOT_TOKEN}
# command: python -m bot.main
# depends_on:
# - db
# volumes:
# - .:/app
api:
build:
@@ -31,28 +15,46 @@ services:
- .:/app
- ./data:/app/data
- ./models:/app/models
depends_on:
db:
condition: service_healthy
dns:
- 8.8.8.8
- 1.1.1.1
#db:
# image: postgres:15-alpine
# container_name: db
# restart: always
# environment:
# POSTGRES_USER: ${DB_USER}
# POSTGRES_PASSWORD: ${DB_PASS}
# POSTGRES_DB: ${DB_NAME}
# volumes:
# - ./pg_data:/var/lib/postgresql/data
# ports:
# - "5433:5432"
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
# interval: 5s
# timeout: 5s
# retries: 10
# start_period: 10s
web:
build:
context: .
dockerfile: Dockerfile.web
container_name: web
restart: no
environment:
- API_BASE_URL=http://api:8000
- PORT=8550
- HTTP_TIMEOUT=1800
ports:
- "8550:8550"
depends_on:
- api
dns:
- 8.8.8.8
- 1.1.1.1
#volumes:
# pg_data:
db:
image: postgres:15-alpine
container_name: db
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s