Sign inSign up

habib02/lsyncd-ssh

By habib02

Updated about 5 years ago

Lsyncd

Image
0

655

habib02/lsyncd-ssh repository overview

This is a customized Lsyncd image used to synchronize volumes on different servers, in your docker-compose or CLI you should provide these three environment variables :

  • TARGET_HOST=root@ip # IP address of the remote server
  • TARGET_DIR= # Map the remote folder to be synchronized
  • TARGET_PORT= #ssh port of the remote server

You must have SSH connection between the servers, expose the ssh key to : /root/.ssh/:/root/.ssh/

Expose the local volume to be synchronized to : #local_volume:/mnt/data/

In order to get the log file, expose a local directory to : /var/log/lsyncd/

PS: to have a bi-directional synchronization, run the containers on both servers (don't forget to change the Env variables)

Tag summary

Content type

Image

Digest

Size

6.2 MB

Last updated

about 5 years ago

docker pull habib02/lsyncd-ssh