forked from Chevron7Locked/kima-hub
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
72 lines (65 loc) · 2.1 KB
/
docker-compose.dev.yml
File metadata and controls
72 lines (65 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Lidify Dev Services
# Run alongside npm dev servers for audio analysis
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d
#
# This runs:
# - PostgreSQL (port 5433)
# - Redis (port 6379)
# - Audio Analyzer with ML models (Enhanced vibe matching)
services:
postgres:
image: postgres:16-alpine
container_name: lidify_dev_db
environment:
POSTGRES_USER: lidify
POSTGRES_PASSWORD: lidify
POSTGRES_DB: lidify
volumes:
- postgres_dev_data:/var/lib/postgresql/data
ports:
- "5433:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lidify -d lidify"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: lidify_dev_redis
ports:
- "6379:6379"
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# Audio Analyzer - Essentia with ML models for Enhanced vibe matching
audio-analyzer:
build:
context: ./services/audio-analyzer
container_name: lidify_audio_analyzer
environment:
# Connect to host machine's services (or Docker services)
REDIS_URL: redis://redis:6379
DATABASE_URL: postgresql://lidify:lidify@postgres:5432/lidify
# Music path inside container (mounted from host)
MUSIC_PATH: /music
DOWNLOAD_PATH: /soulseek-downloads
BATCH_SIZE: 10
SLEEP_INTERVAL: 5
volumes:
# Mount your music library - UPDATE THIS PATH
- "${MUSIC_PATH:-C:/Users/kevin/Music}:/music:ro"
- "${DOWNLOAD_PATH:-C:/Users/kevin/Music/soulseek-downloads}:/soulseek-downloads:ro"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_dev_data: