Dockerfile for the Syncthing Discovery Server
There are three build arguments: buildhost
, version
, and tar_filename
. Use these to to customize where the stdiscosrv source is downloaded from. Note you should only need to touch the version
argument.
- Run the basic server
$ docker run -d -p 8443:8443 stdiscosrv
- Run the server with a persistent cert and key
$ DATA_DIR=/path/to/data/dir
$ docker run -d -v $DATA_DIR:/opt/stdiscosrv/data -p 8443:8443 stdiscosrv
$ ls $DATA_DIR
client.pem key.pem