docker安装dlna服务器
root@tr-desktop:/home/tr/minidlna# tree
.
├── docker-compose.yml
├── html
│ └── oceans.mp4
└── minidlna.conf
1 directory, 3 files
root@tr-desktop:/home/tr/minidlna# cat minidlna.conf
# 位置和扫描选项
media_dir=/media
media_dir=/mnt/usb
friendly_name=MyDLNA
db_dir=/var/lib/minidlna
log_dir=/var/log
inotify=yes
notify_interval=900
serial=12345678
model_number=1
root@tr-desktop:/home/tr/minidlna# cat docker-compose.yml
version: '3'
services:
dlna:
image: vladgh/minidlna
container_name: minidlna
restart: always
volumes:
- /home/tr/minidlna/html:/media/html
network_mode: host
environment:
MINIDLNA_MEDIA_DIR: /media
MINIDLNA_FRIENDLY_NAME: pc
root@tr-desktop:/home/tr/minidlna#