docker-compose.yml:
version: '2'
services:
wdmrc:
image: myavchik/wdmrc-proxy:latest
container_name: wdmrc
environment:
- WDMRC_PORT=8010
ports:
- "127.0.0.1:8010:8010"
restart: always
apt-get update apt-get install davfs2
sed -i -e "s/# use_locks 1/use_locks 0/" /etc/davfs2/davfs2.conf
mkdir /cloud
For Nextcloud in docker change directory uid and gid
groupadd -g 82 nextcloud
useradd nextcloud -u 82 -g 82
chown 82:82 /clooud
4. Add automount on startup
echo "/cloud [email protected]#SEP MYUSERNAME_PASSWORD_SEP_PASSWORD" >> /etc/davfs2/secrets "MYUSERNAME_PASSWORD" is password for mail.ru
"PASSWORD" is password for davfs2 proxy (wdmrc-proxy)
Create /etc/init.d/cloud_mount.sh
#!/usr/bin/env bash
n=0
until [ $n -ge 5 ]
do
(docker ps | grep -q wdmrc) && mount --rw -t davfs http://127.0.0.1:8010 /cloud -o uid=82 && break
n=$[$n+1]
sleep 5
done
exit 0
Set executable and update rc.d
chmod +x /etc/init.d/cloud_mount.sh
update-rc.d cloud_mount.sh defaults
Content type
Image
Digest
Size
116.7 MB
Last updated
almost 7 years ago
docker pull myavchik/wdmrc-proxy