forked from tnds82/vdr-back
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-vdr-vol.sh
More file actions
executable file
·24 lines (21 loc) · 898 Bytes
/
start-vdr-vol.sh
File metadata and controls
executable file
·24 lines (21 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
## for nfs volume (recordings)
# docker volume create --driver local --opt type=nfs --opt o=addr=10.10.1.23,rw --opt device=:/mnt/tank/vdr vdr-back_video
## for vsphere volumes (vdr and etc folders):
## install vsphere storage plugin (https://github.com/vmware/vsphere-storage-for-docker) first:
# docker plugin install --grant-all-permissions --alias vsphere vmware/vsphere-storage-for-docker:latest
# docker volume create --driver=vsphere --name=vdr-back_etc -o size=200mb
# docker volume create --driver=vsphere --name=vdr-back_var -o size=500mb
docker run --name vdr-back -it -d \
--restart unless-stopped \
--device=/dev/dvb:/dev/dvb \
-v vdr-back_video:/srv/vdr/video \
-v vdr-back_etc@iscsi-vmw:/etc/vdr \
-v vdr-back_var@iscsi-vmw:/var/lib/vdr \
-p 2004:2004 \
-p 3000:3000 \
-p 6419:6419 \
-p 8002:8002 \
-p 8008:8008 \
-p 34890:34890 \
maligin/vdr-back:0.2.8-sky