Docker image for Syncthing client/node.
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
-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.
For general help and support join our GitHub Discussions or reach out on Twitter.
Please report bugs to the GitHub Issue Tracker.
This project is licensed under the MIT License.