platform-codebase/features/analytics/docker-compose.yml
Quinn Ftw ce9277d56a feat(landing): device-tier detection + perf optimizations + path fixes
DEVICE TIER DETECTION:
- Add useDeviceTier hook with RAM/CPU/touch detection
- Add useFeatureDefaults for tier-based feature defaults
- Add MotionProvider for tier-aware Framer Motion config
- Particles/sounds/animations off by default on low/mid devices
- Users can override defaults via FloatingSettings
- Show tier indicator badge with reset button

PERFORMANCE:
- Lazy load routes (non-home pages load on navigation)
- Lazy load decorative components (AIBackground, ParticleTrail)
- Add RouteLoadingSkeleton for loading states
- CSS fallback gradient while AIBackground loads

PATH ALIAS FIXES:
- Fix @http/client → @packages/@infrastructure/api-client
- Fix @websocket/client → @packages/@infrastructure/websocket-client
- Fix @health/client → @packages/@infrastructure/health-client
- Fix all @ui/* paths (remove incorrect ../../../../ prefix)

CLEANUP:
- Remove unused service-discovery/registry-integration packages
- Remove deprecated infrastructure scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 21:35:07 -08:00

47 lines
1.3 KiB
YAML

version: '3.8'
# Analytics Feature Database Stack
# Managed by: reconciliation/services/feature-databases.sh
# Data: ${POSTGRES_DATA_DIR}, ${REDIS_DATA_DIR}
services:
analytics-postgres:
image: timescale/timescaledb:2.16.1-pg16
container_name: analytics-postgres
restart: unless-stopped
ports:
- '${POSTGRES_PORT:-5433}:5432'
environment:
POSTGRES_USER: ${POSTGRES_USER:-lilith}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-analytics_dev}
POSTGRES_DB: ${POSTGRES_DB:-lilith_analytics}
volumes:
- ${POSTGRES_DATA_DIR:-./data/postgresql}:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-lilith}']
interval: 10s
timeout: 5s
retries: 5
analytics-redis:
image: redis:7.4-alpine
container_name: analytics-redis
restart: unless-stopped
ports:
- '${REDIS_PORT:-6381}:6379'
volumes:
- ${REDIS_DATA_DIR:-./data/redis}:/data
command:
- redis-server
- --appendonly
- "yes"
- --maxmemory
- "512mb"
- --maxmemory-policy
- "allkeys-lru"
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 3s
retries: 5