-
Notifications
You must be signed in to change notification settings - Fork 1
/
Docker.sh
36 lines (27 loc) · 903 Bytes
/
Docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#template file for docker procidure @ openhoofd.loc
ContainerName=Resilo_Sync
Path="/mnt/Xxx/files/"$ContainerName
echo "Starting $Path/Start.sh"
docker stop $ContainerName
docker rm $ContainerName
mkdir $Path/data
cp $Path/rssync.conf $Path/data/sync.conf
docker run -d \
--name $ContainerName \
-p xxxx:xxxxx \
-p xxxx:8888 \
-v $Path/data:/mnt/sync \
-v $Path/data/.sync:/.sync \
-v $Path/rssync.conf:/mnt/sync/sync.conf \
-v /mnt/bigpart/Media/Podcast/NA:/mnt/NA \
-v /mnt/bigpart/Media/Podcast/NA_archive:/mnt/NA_archive \
-v /mnt/bigpart/Media/Podcast/NA_Latest-show:/mnt/NA_Latest-show \
--restart on-failure \
resilio/sync
#--cpuset-cpus="1"\
#--memory 256M\
#-memory-swap 256M\
echo "Starting Script done for $Path/Start.sh"
#####find -name ".sync" -exec rm -fr {} \;
######find -name ".sync" | xargs rm -r {}