mirror of
https://github.com/bnair123/MusicAnalyser.git
synced 2026-02-25 11:46:07 +00:00
- Added hierarchical AGENTS.md knowledge base - Implemented PlaylistService with 6h themed and 24h devotion mix logic - Integrated AI theme generation for 6h playlists via Gemini/OpenAI - Added /playlists/refresh and metadata endpoints to API - Updated background worker with scheduled playlist curation - Created frontend PlaylistsSection, Tooltip components and integrated into Dashboard - Added Alembic migration for playlist tracking columns - Fixed Docker healthcheck with curl installation
55 lines
1.3 KiB
YAML
55 lines
1.3 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}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- OPENAI_APIKEY=${OPENAI_APIKEY}
|
|
- SIX_HOUR_PLAYLIST_ID=${SIX_HOUR_PLAYLIST_ID}
|
|
- DAILY_PLAYLIST_ID=${DAILY_PLAYLIST_ID}
|
|
ports:
|
|
- '8000:8000'
|
|
networks:
|
|
- dockernet
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/snapshots?limit=1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
image: ghcr.io/bnair123/musicanalyser-frontend:latest
|
|
container_name: music-analyser-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- '8991:80'
|
|
networks:
|
|
- dockernet
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
music_data:
|
|
driver: local
|
|
|
|
networks:
|
|
dockernet:
|
|
external: true
|