nightingale cache and mem limits

This commit is contained in:
mark committed 2026-09-04 10:53:04 +02:00
1 parent 7e8898a042
commit c06ab18da9
2 files changed
+22 -1

No files matched your search

+13
View File
@@ -17,6 +17,19 @@
group: www-data group: www-data
mode: "02775" mode: "02775"
# Processed-song cache. Bind-mounted into the container at /data/cache and
# reachable over sshfs so songs can be analyzed on a machine with more RAM and
# the results dropped straight in here. Owned by the container's uid (999, fixed
# in razzaru/nightingale) so it can write as owner; group aurbis + setgid lets
# aurbis members (sshfs) create/replace files too.
- name: Create nightingale cache dir (shared with container uid 999 + aurbis)
file:
path: /opt/nightingale/cache
state: directory
owner: "999"
group: aurbis
mode: "02775"
- name: Template nightingale compose - name: Template nightingale compose
template: template:
src: nightingale/docker-compose.yml.j2 src: nightingale/docker-compose.yml.j2
+9 -1
View File
@@ -2,13 +2,21 @@
# CPU-only prebuilt image # CPU-only prebuilt image
services: services:
nightingale: nightingale:
image: razzaru/nightingale:latest image: razzaru/nightingale:1.2.0
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:8087:8080" - "127.0.0.1:8087:8080"
# Keeps separation resident but forces the alignment spike into swap rather
# than evicting the other stacks and hanging the host.
mem_limit: 9g
memswap_limit: 24g
# /data/cache is bind-mounted so it can be reached over sshfs and songs
# can be pre-processed on a machine with more RAM (see docs/aurbis.wiki).
# Everything else (db, models, vendor) stays in the named volume.
volumes: volumes:
- data:/data - data:/data
- ./songs:/songs:ro - ./songs:/songs:ro
- ./cache:/data/cache
environment: environment:
NIGHTINGALE_LIBRARY_PATH: /songs NIGHTINGALE_LIBRARY_PATH: /songs