docker run -d
--restart unless-stopped
--name fireshare
-p 2480:80
-v /home/fireshare/data:/data:rw
-v /home/fireshare/processed:/processed:rw
-v /media/tzktzk1/Media/Video:/videos:rw
-e ADMIN_PASSWORD=123456 shaneisrael/fireshare:latest
我这里的命令里不加 --restart unless-stopped ,原因是:开机时媒体文件所在磁盘还没挂载,程序会自动新建对应的文件夹,当磁盘挂载后路径名称发生改变,所以会有file missing问题出现。
docker run -d --name fireshare -p 2480:80 -v /home/fireshare/data:/data:rw -v /home/fireshare/processed:/processed:rw -v /media/tzktzk1/Media/Video:/videos:rw -e ADMIN_PASSWORD=123456 shaneisrael/fireshare:latest
docker-compose.yml
version: '3.7'
services:
fireshare:
container_name: fireshare
image: shaneisrael/fireshare:latest
ports:
- "2480:80"
volumes:
- /home/fireshare/data:/data
- /home/fireshare/processed:/processed
- /media/tzktzk1/Media/Video:/videos
environment:
- ADMINUSERNAME=admin
- ADMIN_PASSWORD=123456
网友评论