---
title:
source:
author: shenwei
published:
created:
description:
tags: [docker, music, navidrome]
---

#docker #navidrome #music 

``` yaml
version: '3.8'

services:
  navidrome:
    image: deluan/navidrome:latest
    container_name: navidrome
    user: "1026:100"
    restart: unless-stopped
    ports:
      - "4533:4533"
    volumes:
      - /volume1/music:/music:ro"
      - /volume1/docker/navidrome/data:/data
    environment:
      # 开启详细日志，便于排查流媒体传输问题
      - ND_LOGLEVEL=info
      # 启用转码配置界面
      - ND_ENABLETRANSCODINGCONFIG=true
      # 自动根据客户端需求转码下载
      - ND_AUTOTRANSCODEDOWNLOAD=true
      # 限制转码缓存大小，保护磁盘空间
      - ND_TRANSCODINGCACHESIZE=200MB
```

## Reference:
### Navidrome Doc
https://www.navidrome.org/docs/

### Navidrome FAQ
https://www.navidrome.org/docs/faq/

