- Fix admin sidebar: remove duplicate Teams, add Storage nav item - Analytics: client-scoped queries, super_admin sees all (including NULL client_id) - Storage management: list/download/delete presentations with file metadata - Settings page with brand config router - AI usage tracking: new AIUsageModel, ai_usage_service, analytics endpoint - Master deck → template bridge: _register_as_template creates TemplateModel + PresentationLayoutCodeModel so parsed layouts appear in template picker - Multi-provider LLM vision in parser: Anthropic/Google/OpenAI with asyncio.to_thread - Fix PPTX upload 400: accept by .pptx extension (browser sends octet-stream) - Fix reparse FK violation: presentation_id=None for parse_master_deck jobs - Worker job_timeout increased to 1800s for LLM-heavy master deck parsing - PYTHONUNBUFFERED=1 in docker-compose worker for real-time log output - Auth: clientId in /me response, dev-login cookie improvements - Frontend: auth slice clientId, master-deck thumbnails, storage page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
96 lines
2.1 KiB
YAML
96 lines
2.1 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: deckforge
|
|
POSTGRES_USER: deckforge
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-deckforge}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U deckforge"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
api:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
env_file: .env
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://deckforge:${POSTGRES_PASSWORD:-deckforge}@postgres:5432/deckforge
|
|
REDIS_URL: redis://redis:6379/0
|
|
APP_DATA_DIRECTORY: /app_data
|
|
TEMP_DIRECTORY: /tmp/deckforge
|
|
volumes:
|
|
- app_data:/app_data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
worker:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
command: ["python", "-m", "arq", "workers.main.WorkerSettings"]
|
|
env_file: .env
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://deckforge:${POSTGRES_PASSWORD:-deckforge}@postgres:5432/deckforge
|
|
REDIS_URL: redis://redis:6379/0
|
|
APP_DATA_DIRECTORY: /app_data
|
|
TEMP_DIRECTORY: /tmp/deckforge
|
|
PYTHONUNBUFFERED: "1"
|
|
volumes:
|
|
- app_data:/app_data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
web:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
CAN_CHANGE_KEYS: "false"
|
|
API_INTERNAL_URL: "http://api:8000"
|
|
depends_on:
|
|
- api
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- app_data:/app_data:ro
|
|
depends_on:
|
|
- web
|
|
- api
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
app_data:
|