User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
services:audiomuseai [2025/10/14 08:48] – created willyservices:audiomuseai [2025/10/14 18:21] (current) – [Installation] willy
Line 6: Line 6:
  
 ===== Installation ===== ===== Installation =====
 +
 +First of all, AudioMuse-AI requires a CPU with **avx** support, so check that your hardware fit the bill:
 +<code bash>
 +bash ~ # lscpu  | grep -i avx
 +Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp vnmi md_clear flush_l1d arch_capabilities
 +</code>
 +
 +As you can see, my CPU supports AVX and AVX2.
 +
 +Then create the usual dedicated user:
 +<code bash>
 +useradd -m -d /data/daemons/audiomuse-ai audiomuse-ai
 +</code>
 +
 +and, as user **audiomuse-ai**, create the docker compose file.
 +
 +The docker compose file from [[https://github.com/NeptuneHub/AudioMuse-AI/blob/main/deployment/deployment-navidrome.yaml|https://github.com/NeptuneHub/AudioMuse-AI/blob/main/deployment/deployment-navidrome.yaml]] is really complex and hard to read, and doesn't work with the podman-compose i am using, so, here is the one i have rewritten to make it closer to all the other composers file i use:
 +
 +<file - docker-compose.yaml>
 +services:
 +  audiomuse-ai:
 +    image: ghcr.io/neptunehub/audiomuse-ai:latest
 +    container_name: audiomuse-ai
 +    ports:
 +        - "8925:8000"
 +    volumes:
 +      - /data/daemons/audiomuse-ai/temp_audio:/app/temp_audio
 +    environment:
 +        MEDIASERVER_TYPE: "navidrome"
 +        NAVIDROME_URL: "https://navidrome.mydomain.com"
 +        REDIS_URL: "redis://redis:6379/0"
 +        TEMP_DIR: "/app/temp_audio"
 +        SERVICE_TYPE: "flask"
 +        NAVIDROME_USER: "user"
 +        NAVIDROME_PASSWORD: "password"
 +        POSTGRES_USER: "audiomuse"
 +        POSTGRES_PASSWORD: "audiomusepassword"
 +        POSTGRES_DB: "audiomusedb"
 +        POSTGRES_HOST: "postgres"
 +        POSTGRES_PORT: "5432"
 +        GEMINI_API_KEY: "your gemini api key"
 +    depends_on:
 +      - postgres
 +    network:
 +      - audiomuse-ai-net
 +
 +  rq-worker:
 +    container_name: audiomuse-ai-worker
 +    image: ghcr.io/neptunehub/audiomuse-ai:latest
 +#    ports:
 +#        - "8925:8000"
 +    volumes:
 +      - /data/daemons/audiomuse-ai/temp_audio:/app/temp_audio
 +    environment:
 +        MEDIASERVER_TYPE: "navidrome"
 +        NAVIDROME_URL: "https://navidrome.mydomain.com"
 +        REDIS_URL: "redis://redis:6379/0"
 +        TEMP_DIR: "/app/temp_audio"
 +        SERVICE_TYPE: "worker"
 +        NAVIDROME_USER: "user"
 +        NAVIDROME_PASSWORD: "password"
 +        POSTGRES_USER: "audiomuse"
 +        POSTGRES_PASSWORD: "audiomusepassword"
 +        POSTGRES_DB: "audiomusedb"
 +        POSTGRES_HOST: "postgres"
 +        POSTGRES_HOST: "postgres"
 +        POSTGRES_PORT: "5432"
 +        GEMINI_API_KEY: ""
 +    depends_on:
 +      - postgres
 +      - redis
 +    network:
 +      - audiomuse-ai-net
 +
 +  postgres:
 +    container_name: postgres
 +    image: postgres:15-alpine
 +    volumes:
 +      - /data/daemons/audiomuse-ai/postgres_data:/var/lib/postgresql/data
 +    environment:
 +        SERVICE_TYPE: "flask"
 +        NAVIDROME_USER: "willy"
 +        NAVIDROME_PASSWORD: "Gargiul01="
 +        POSTGRES_USER: "audiomuse"
 +        POSTGRES_PASSWORD: "audiomusepassword"
 +        POSTGRES_DB: "audiomusedb"
 +        POSTGRES_HOST: "postgres"
 +        POSTGRES_PORT: "5432"
 +        GEMINI_API_KEY: ""
 +    network:
 +      - audiomuse-ai-net
 +
 +  redis:
 +    container_name: redis
 +    image: redis:7-alpine
 +    volumes:
 +      - /data/daemons/audiomuse-ai/postgres_data:/var/lib/postgresql/data
 +    environment:
 +        SERVICE_TYPE: "flask"
 +        NAVIDROME_USER: "willy"
 +        NAVIDROME_PASSWORD: "Gargiul01="
 +        POSTGRES_USER: "audiomuse"
 +        POSTGRES_PASSWORD: "audiomusepassword"
 +        POSTGRES_DB: "audiomusedb"
 +        POSTGRES_HOST: "postgres"
 +        POSTGRES_PORT: "5432"
 +        GEMINI_API_KEY: ""
 +    network:
 +      - audiomuse-ai-net
 +
 +networks:
 +  audiomuse-ai-net:
 +    dns_enabled: true
 +</file>
 +
 +Of course, you need to specify your Navidrome URL, user and password. The GEMINI key is not required, only if you want AI assisted playlist naming. You could also use a self-hosted OLLAMA.
 +
 +