Brain Service: - Playwright stealth crawler replacing browserless (og:image, Readability, Reddit JSON API) - AI classification with tag definitions and folder assignment - YouTube video download via yt-dlp - Karakeep migration complete (96 items) - Taxonomy management (folders with icons/colors, tags) - Discovery shuffle, sort options, search (Meilisearch + pgvector) - Item tag/folder editing, card color accents RSS Reader Service: - Custom FastAPI reader replacing Miniflux - Feed management (add/delete/refresh), category support - Full article extraction via Readability - Background content fetching for new entries - Mark all read with confirmation - Infinite scroll, retention cleanup (30/60 day) - 17 feeds migrated from Miniflux iOS App (SwiftUI): - Native iOS 17+ app with @Observable architecture - Cookie-based auth, configurable gateway URL - Dashboard with custom background photo + frosted glass widgets - Full fitness module (today/templates/goals/food library) - AI assistant chat (fitness + brain, raw JSON state management) - 120fps ProMotion support AI Assistants (Gateway): - Unified dispatcher with fitness/brain domain detection - Fitness: natural language food logging, photo analysis, multi-item splitting - Brain: save/append/update/delete notes, search & answer, undo support - Madiha user gets fitness-only (brain disabled) Firefox Extension: - One-click save to Brain from any page - Login with platform credentials - Right-click context menu (save page/link/image) - Notes field for URL saves - Signed and published on AMO Other: - Reader bookmark button routes to Brain (was Karakeep) - Fitness food library with "Add" button + add-to-meal popup - Kindle send file size check (25MB SMTP2GO limit) - Atelier UI as default (useAtelierShell=true) - Mobile upload box in nav drawer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
108 lines
2.8 KiB
YAML
108 lines
2.8 KiB
YAML
services:
|
|
# ── API ──
|
|
brain-api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.api
|
|
container_name: brain-api
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./storage:/app/storage
|
|
environment:
|
|
- DATABASE_URL=postgresql+asyncpg://brain:brain@brain-db:5432/brain
|
|
- REDIS_URL=redis://brain-redis:6379/0
|
|
- MEILI_URL=http://brain-meili:7700
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026}
|
|
- CRAWLER_URL=http://brain-crawler:3100
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini}
|
|
- PORT=8200
|
|
- DEBUG=${DEBUG:-0}
|
|
- TZ=${TZ:-America/Chicago}
|
|
depends_on:
|
|
brain-db:
|
|
condition: service_healthy
|
|
brain-redis:
|
|
condition: service_started
|
|
brain-meili:
|
|
condition: service_started
|
|
networks:
|
|
- default
|
|
- pangolin
|
|
|
|
# ── Worker ──
|
|
brain-worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.worker
|
|
container_name: brain-worker
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./storage:/app/storage
|
|
environment:
|
|
- DATABASE_URL=postgresql+asyncpg://brain:brain@brain-db:5432/brain
|
|
- REDIS_URL=redis://brain-redis:6379/0
|
|
- MEILI_URL=http://brain-meili:7700
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026}
|
|
- CRAWLER_URL=http://brain-crawler:3100
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini}
|
|
- TZ=${TZ:-America/Chicago}
|
|
depends_on:
|
|
brain-db:
|
|
condition: service_healthy
|
|
brain-redis:
|
|
condition: service_started
|
|
|
|
# ── PostgreSQL + pgvector ──
|
|
brain-db:
|
|
image: pgvector/pgvector:pg16
|
|
container_name: brain-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=brain
|
|
- POSTGRES_PASSWORD=brain
|
|
- POSTGRES_DB=brain
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U brain"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
# ── Redis ──
|
|
brain-redis:
|
|
image: redis:7-alpine
|
|
container_name: brain-redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data/redis:/data
|
|
|
|
# ── Meilisearch ──
|
|
brain-meili:
|
|
image: getmeili/meilisearch:v1.12
|
|
container_name: brain-meili
|
|
restart: unless-stopped
|
|
environment:
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026}
|
|
- MEILI_ENV=production
|
|
volumes:
|
|
- ./data/meili:/meili_data
|
|
|
|
# ── Crawler (Playwright + stealth for JS rendering + screenshots) ──
|
|
brain-crawler:
|
|
build:
|
|
context: ./crawler
|
|
dockerfile: Dockerfile
|
|
container_name: brain-crawler
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=3100
|
|
- TZ=${TZ:-America/Chicago}
|
|
shm_size: '1gb'
|
|
|
|
networks:
|
|
pangolin:
|
|
external: true
|