Skip to content

Instantly share code, notes, and snippets.

@nsuvorov83
Created September 15, 2022 21:19
Show Gist options
  • Save nsuvorov83/ae0404b324f610c9f36f56d75884638b to your computer and use it in GitHub Desktop.
Save nsuvorov83/ae0404b324f610c9f36f56d75884638b to your computer and use it in GitHub Desktop.
Run containers yandex-disk and syncthing
#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