feat(docker): add analyzer profiles for optional services

Profiles:
- none: Minimal, metadata only (~2GB RAM)
- analysis: MusicCNN for BPM/key/mood (~5GB RAM)
- vibe: Both analyzers for similarity search (~7GB RAM)
- full: Alias for vibe

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-01-30 14:58:09 -06:00
parent 88d8bc057c
commit c7758f8417
+15 -2
View File
@@ -262,8 +262,17 @@ services:
reservations:
memory: 2G
# Disabled by default - enable when needed
# Profiles: analysis (MusicCNN only), vibe/full (both analyzers)
profiles:
- audio-analysis
- analysis
- vibe
- full
healthcheck:
test: ["CMD", "pgrep", "-f", "python.*analyzer"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# CLAP Audio Analyzer - Generates embeddings for similarity search
audio-analyzer-clap:
@@ -288,6 +297,8 @@ services:
condition: service_healthy
backend:
condition: service_healthy
audio-analyzer:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
@@ -297,8 +308,10 @@ services:
cpus: "4"
reservations:
memory: 1G
# Profiles: vibe/full (CLAP requires MusicCNN analysis first)
profiles:
- audio-analysis
- vibe
- full
volumes:
# Lidify core