Skip to content

Commit 79b6b88

Browse files
authored
Merge pull request #513 from pmoya-in-the-web/master
add syncthing service to IOTstack
2 parents 1e0ff05 + 387ae16 commit 79b6b88

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.templates/syncthing/service.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
syncthing:
2+
image: linuxserver/syncthing:latest
3+
container_name: syncthing
4+
hostname: raspberrypi #optional
5+
environment:
6+
- PUID=1000
7+
- PGID=1000
8+
- HOME=/app
9+
- TZ=Etc/UTC
10+
volumes:
11+
- ./volumes/syncthing/config:/config
12+
- ./volumes/syncthing/data:/app
13+
#ports:
14+
# - 8384:8384 # Web UI
15+
# - 22000:22000/tcp # TCP file transfers
16+
# - 22000:22000/udp # QUIC file transfers
17+
# - 21027:21027/udp # Receive local discovery broadcasts
18+
network_mode: host
19+
20+

docs/Containers/Syncthing.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Syncthing
2+
3+
Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose where it is stored, whether it is shared with some third party, and how it's transmitted over the internet.
4+
5+
Forget about using propietary solutions and take control of your data. Syncthing is an open source solution for synchronizing your data in a p2p way.
6+
7+
## References
8+
9+
- [Syncthing home page](https://syncthing.net/)
10+
- [GitHub repository](https://github.com/syncthing/syncthing)
11+
- [linuxserver.io docker image](https://docs.linuxserver.io/images/docker-syncthing) - The one used here
12+
- [Official Syncthing docker image](https://hub.docker.com/r/syncthing/syncthing) - Not the one used here
13+
14+
- For more information about official syncthing image have a look at [here](https://github.com/syncthing/syncthing/blob/main/README-Docker.md)
15+
16+
## Web interface
17+
18+
The web UI can be found on `yourip:8384`
19+
20+
## Data & volumes
21+
22+
Configuration data is available under `/config` containers directroy and mapped to `./volumes/syncthing/config` .
23+
24+
The `/app` directory is inside the container, on the host you will use ./volumes/syncthing/data.
25+
The default share is named Sync. Other added folders will also appear under data.
26+
27+
## Ports
28+
29+
Have a look at `~/IOTStack/.templates/syncthing/service.yml` or linuxserve docker documentation, by the way, used ports are;
30+
31+
```
32+
ports:
33+
- 8384:8384 # Web UI
34+
- 22000:22000/tcp # TCP file transfers
35+
- 22000:22000/udp # QUIC file transfers
36+
- 21027:21027/udp # Receive local discovery broadcasts
37+
```
38+
39+

0 commit comments

Comments
 (0)