Appearance
搭建samba
目录规划
/humi/docker #docker配置文件
/humi/share #挂载硬盘
/humi/share/download
/humi/share/video
Docker配置
yaml
version: '3.4'
services:
samba:
image: dperson/samba
environment:
TZ: 'EST5EDT'
networks:
- default
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
read_only: true
tmpfs:
- /tmp
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- /humi/share:/share
- /humi:/humi
command: '-s "Download;/share/download;yes;no;no;humi" -s "Video;/share/video;yes;no;no;humi" -u "humi;humi" -p'
aria2-pro:
image: p3terx/aria2-pro
environment:
- PUID=100
- PGID=101
- UMASK_SET=022
- RPC_SECRET=humi
- RPC_PORT=6800
- LISTEN_PORT=6888
- DISK_CACHE=64M
- IPV6_MODE=false
- UPDATE_TRACKERS=true
- CUSTOM_TRACKER_URL=
- TZ=Asia/Shanghai
volumes:
- /humi/docker/aria2/aria2-config:/config
- /humi/share/download/aria2/aria2-downloads:/downloads
# If you use host network mode, then no port mapping is required.
# This is the easiest way to use IPv6 networks.
network_mode: host
# network_mode: bridge
# ports:
# - 6800:6800
# - 6888:6888
# - 6888:6888/udp
restart: unless-stopped
# Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.
logging:
driver: json-file
options:
max-size: 1m
# AriaNg is just a static web page, usually you only need to deploy on a single host.
ariang:
image: p3terx/ariang
command: --port 6880 --ipv6
network_mode: host
# network_mode: bridge
# ports:
# - 6880:6880
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 1m
minidlna:
image: vladgh/minidlna
network_mode: host
volumes:
/humi/share/video:/media/video
environment:
MINIDLNA_MEDIA_DIR: /media/video
MINIDLNA_FRIENDLY_NAME: HumiRaspberrypi
sing-box:
image: ghcr.io/sagernet/sing-box
container_name: sing-box
restart: always
volumes:
- /etc/sing-box:/etc/sing-box/
command: -D /var/lib/sing-box -C /etc/sing-box/ run
networks:
default: