homeserver/docker-compose/navidrome/docker-compose.yml.j2

64 lines
1.9 KiB
Text
Raw Normal View History

services:
######## navidrome-mg ########
navidrome-mg:
container_name: "navidrome-mg"
image: "deluan/navidrome:0.54.1"
restart: unless-stopped
pull_policy: missing
environment:
ND_AUTOIMPORTPLAYLISTS: false
ND_BASEURL: /mg
2024-06-12 07:51:03 +02:00
ND_COVERARTPRIORITY: "embedded"
ND_DATAFOLDER: /data
2024-06-12 07:51:03 +02:00
ND_ENABLEARTWORKPRECACHE: true
ND_ENABLECOVERANIMATION: false
ND_ENABLEEXTERNALSERVICES: false
ND_ENABLEGRAVATAR: false
2024-06-12 07:51:03 +02:00
ND_ENABLEMEDIAFILECOVERART: true
ND_ENABLEREPLAYGAIN: true
ND_ENABLESHARING: false
ND_ENABLESTARRATING: false
ND_ENABLETRANSCODINGCONFIG: true
ND_IMAGECACHESIZE: 100MB
2024-06-12 07:51:03 +02:00
ND_JUKEBOX_ENABLED: false
ND_LASTFM_ENABLED: false
ND_LOGLEVEL: info
ND_MUSICFOLDER: /music
ND_RECENTLYADDEDBYMODTIME: true
ND_SCANSCHEDULE: 0 1 * * *
ND_SESSIONTIMEOUT: 24h
ND_TRANSCODINGCACHESIZE: 500MB
PUID: 1000
PGID: 1000
TZ: Europe/Berlin
ND_ENABLE_EXTERNAL_SERVICES: false
volumes:
- musik_smb_mg:/music:ro
- data:/data
networks:
- traefik
labels:
traefik.http.routers.navidrome-mg.rule: Host(`audio.mgrote.net`)&&PathPrefix(`/mg`)
traefik.enable: true
traefik.http.routers.navidrome-mg.tls: true
traefik.http.routers.navidrome-mg.tls.certresolver: resolver_letsencrypt
traefik.http.routers.navidrome-mg.entrypoints: entry_https
traefik.http.services.navidrome-mg.loadbalancer.server.port: 4533
ports:
- "4533:4533"
######## Volumes ########
volumes:
data:
musik_smb_mg: # Verzeichnis in restic aus Backup ausnehmen!
driver: local
driver_opts:
type: "cifs"
o: "user=navidrome,password={{ lookup('viczem.keepass.keepass', 'fileserver/fileserver_smb_user_navidrome', 'password') }}"
device: "//192.168.2.54/musik/Musik"
######## Networks ########
networks:
traefik:
external: true