mirror of https://github.com/tiyn/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.6 KiB
54 lines
1.6 KiB
5 years ago
|
# Syncthing
|
||
5 years ago
|
|
||
|
## Setup
|
||
|
|
||
|
### Docker
|
||
|
|
||
5 years ago
|
The official container and documentation was made by [linuxserver](https://hub.docker.com/r/linuxserver/syncthing).
|
||
|
|
||
5 years ago
|
#### Environment-variables
|
||
5 years ago
|
Set the following variables with the -e tag.
|
||
|
|
||
|
| Name | Usage | Default |
|
||
|
| --------- | ---------------- | ------- |
|
||
|
| PUID | UserID | |
|
||
|
| PGID | GroupID | |
|
||
|
| TZ | Timezone | |
|
||
5 years ago
|
| UMASK\_SET | setting usermask | |
|
||
5 years ago
|
|
||
5 years ago
|
#### Volumes
|
||
5 years ago
|
Set the following volumes with the -v tag.
|
||
|
|
||
|
| Volume-Name | Container mount | Description |
|
||
|
| ---------------- | --------------- | ----------------------------------------------- |
|
||
5 years ago
|
| syncthing\_config | /config | storage for config and possible downloaded data |
|
||
5 years ago
|
|
||
5 years ago
|
#### Ports
|
||
5 years ago
|
Set the following ports with the -p tag.
|
||
|
|
||
|
| Container Port | Recommended outside port | Protocol | Description |
|
||
|
| -------------- | ------------------------ | -------- | ------------------ |
|
||
|
| 8384 | 8384 | TCP | WebUI |
|
||
|
| 22000 | 22000 | TCP | Syncthing internal |
|
||
|
| 21027 | 21027 | UDP | Syncthing internal |
|
||
|
|
||
5 years ago
|
#### Rebuild
|
||
|
|
||
|
```
|
||
|
#!/bin/sh
|
||
|
docker stop syncthing
|
||
|
docker rm syncthing
|
||
|
docker pull linuxserver/syncthing
|
||
|
docker run --name syncthing \
|
||
|
--restart unless-stopped \
|
||
|
-p 8384:8384 \
|
||
|
-p 22000:22000 \
|
||
|
-p 21027:21027/udp \
|
||
|
-v syncthing_config:/config \
|
||
|
-e PUID=0 \
|
||
|
-e PGID=0 \
|
||
|
-e TZ=Europe/Berlin \
|
||
|
-e UMASK_SET=022 \
|
||
|
-d linuxserver/syncthing
|
||
|
```
|