nikto
January 24, 2020, 2:07pm
1
I am trying to deploy Syncthing in docker and realise that the configurations files and sync files will stored in separate places.
How ca i realise that? may be some one has the example of docker command or docker-compose file?
For example:
The configuration files will be stored under /srv/AppData/Syncthing
An the Sync Data in folder /srv/Transfer/Syncthing
I hope that anybody will have some advices.
calmh
(Jakob Borg)
January 24, 2020, 2:10pm
2
This is intended to answer your question:
# Docker Container for Syncthing
Use the Dockerfile in this repo, or pull the `syncthing/syncthing` image
from Docker Hub.
Use the `/var/syncthing` volume to have the synchronized files available on the
host. You can add more folders and map them as you prefer.
Note that Syncthing runs as UID 1000 and GID 1000 by default. These may be
altered with the ``PUID`` and ``PGID`` environment variables.
## Example Usage
```
$ docker pull syncthing/syncthing
$ docker run -p 8384:8384 -p 22000:22000 \
-v /wherever/st-sync:/var/syncthing \
syncthing/syncthing:latest
```
This file has been truncated. show original
nikto
January 24, 2020, 2:13pm
3
Use the /var/syncthing
volume to have the synchronized files available on the
host. You can add more folders and map them as you prefer.
Thanks, but how can i bind or mange more folders? Over GUI?
And where will be the configuration stored?
You can’t, you need to bind mount the folders at the point you start the container, or do something crazy and i secure like -v /:/mnt
mounting the root of the host filesystem.
Configuration has a separate mount you should provide if you don’t want to lose it. The docker file is pretty self explanatory.
system
(system)
Closed
February 23, 2020, 2:44pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.