docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
793 B

3 years ago
version: '3.1'
services:
samba:
image: dperson/samba:latest
container_name: samba
restart: always
network_mode: 'host'
volumes:
- /media:/mount
environment:
TZ: 'Asia/Shanghai'
USER: 'liu;123123'
SHARE: 'share;/mount/;yes;no;no;all;none'
logging:
driver: "json-file"
options:
max-size: "1m"
minidlna:
image: vladgh/minidlna
container_name: minidlna
restart: always
network_mode: 'host'
environment:
- MINIDLNA_MEDIA_DIR=/media
- MINIDLNA_FRIENDLY_NAME=MiniDLNA
- MINIDLNA_INOTIFY=yes
- MINIDLNA_NOTIFY_INTERVAL=3
volumes:
- /root/cache/minidlna:/var/lib/minidlna
- /media:/media
logging:
driver: "json-file"
options:
max-size: "1m"