mirror of
https://github.com/bnair123/MusicAnalyser.git
synced 2026-02-25 11:46:07 +00:00
- Upgrade SQLAlchemy 2.0.27→2.0.45, google-genai SDK for Python 3.14 - Replace google-generativeai with google-genai in narrative_service.py - Fix HTTPException handling in main.py (was wrapping as 500) - Rebuild all frontend components with Tailwind CSS v3: - Dashboard, NarrativeSection, StatsGrid, VibeRadar, HeatMap, TopRotation - Custom color palette (background-dark, card-dark, accent-neon, etc.) - Add glass-panel, holographic-badge CSS effects - Docker improvements: - Combined backend container (API + worker in entrypoint.sh) - DATABASE_URL configurable via env var - CI workflow builds both backend and frontend images - Update README with clearer docker-compose instructions
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
image: ghcr.io/bnair123/musicanalyser:latest
|
|
container_name: music-analyser-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- music_data:/app/data
|
|
environment:
|
|
- DATABASE_URL=sqlite:////app/data/music.db
|
|
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
|
|
- SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
|
|
- SPOTIFY_REFRESH_TOKEN=${SPOTIFY_REFRESH_TOKEN}
|
|
- GEMINI_API_KEY=${GEMINI_API_KEY}
|
|
- GENIUS_ACCESS_TOKEN=${GENIUS_ACCESS_TOKEN}
|
|
ports:
|
|
- '8000:8000'
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
image: ghcr.io/bnair123/musicanalyser-frontend:latest
|
|
container_name: music-analyser-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- '8991:80'
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
music_data:
|
|
driver: local
|