Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

PHLAK/docker-syncthing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-syncthing

Docker Syncthing

Join the Community Become a Sponsor One-time Donation
Docker Image Version Docker Pulls License Docker Cloud Build Status

Docker image for Syncthing client/node.


Running the Container

First create some named data volumes to hold the persistent data:

docker volume create --name syncthing-config
docker volume create --name syncthing-data

Then run the Syncthing client:

docker run -d -p 8384:8384 -p 21025:21025/udp -p 22000:22000 -v syncthing-config:/etc/syncthing -v syncthing-data:/vol/storage --name syncthing-client phlak/syncthing

Optional arguments

-v /local/somedir:/vol/storage/somedir
Map a directory (i.e. /local/somedir) on the host OS to the running container. This is useful for syncing files on the host system through the container. This replaces the -v syncthing-data:/vol/storage run argument.
-e TZ=America/Phoenix
Set the timezone for your server. You can find your timezone in this list of timezones. Use the (case sensitive) value from the TZ column. If left unset, timezone will be UTC.
--restart unless-stopped
Always restart the container regardless of the exit status, but do not start it on daemon startup if the container has been put to a stopped state before. See the Docker restart policies for additional details.

Troubleshooting

For general help and support join our GitHub Discussions or reach out on Twitter.

Please report bugs to the GitHub Issue Tracker.

Copyright

This project is licensed under the MIT License.