Phase 1 (Foundation): - Project restructure (presenton-main → backend/ + frontend/) - Database schema (8 new models, Alembic config, seed script) - Auth (Azure AD SSO + dev bypass, JWT sessions, AuthMiddleware) - RBAC (access_service, rbac_middleware, admin routers) - Audit logging (fire-and-forget, AuditMiddleware, admin router) - i18n (react-i18next with 5 namespace files) Phase 2 (Admin Panel & Client Management): - Admin panel shell (sidebar layout, role guard, 12 pages) - Redux admin slice with 18 async thunks - User management (role changes, deactivation) - Client management (CRUD, brand config, team management) - Brand config editor (colors, fonts, logos, voice rules) - Master deck upload & parser (PPTX → HTML → React pipeline) - Audit log viewer with filters and CSV/JSON export Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 lines
2 KiB
YAML
92 lines
2 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
|
|
volumes:
|
|
- app_data:/app_data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
web:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
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:
|