-
-
Save deadem/1aef2ff4fe850acac43b48e3b2b24c56 to your computer and use it in GitHub Desktop.
Run containers yandex-disk and syncthing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See Dockerfile here: https://github.com/nsuvorov83/docker-yandex.disk | |
#Setup yandex.disk | |
docker run -it --rm --name yandex-disk -v yd-config:/root/.config/yandex-disk -v yd-data:/root/Yandex.Disk yandex-disk sh -c "yandex-disk --dir=/root/Yandex.Disk setup" | |
#Run yandex.disk as a daemon | |
docker run -d --restart always -v yd-config:/root/.config/yandex-disk -v yd-data:/root/Yandex.Disk yandex-disk sh -c "yandex-disk --dir=/root/Yandex.Disk start && tail -f /dev/null" | |
#Run Syncthing with the same volume as yandex.disk | |
docker run -d --name=syncthing --hostname=syncthing -e PUID=1000 -e PGID=1000 -e TZ=Europe/Moscow -p 8384:8384 -p 22000:22000/tcp -p 22000:22000/udp -p 21027:21027/udp -v syncthing-conf:/config -v yd-data:/data1 --restart unless-stopped lscr.io/linuxserver/syncthing:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment