|
||
---|---|---|
.. | ||
readme.md |
readme.md
Syncthing
guide-by-example
Purpose & Overview
Synchronize folders between devices.
Simple and elegant solution for Synchronizing folders.
Clients are installed on devices, and paired with the Syncthing server.
There are Windows, MacOs, Linux, Android clients, and 3rd party Möbius Sync for iOS.
Written in Go.
Files and directory structure
/home/
└── ~/
└── docker/
└── syncthing/
├── 🗋 .env
└── 🗋 docker-compose.yml
.env
- a file containing environment variables for docker composedocker-compose.yml
- a docker compose file, telling docker how to run the container
Compose
docker-compose.yml
services:
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: syncthing
restart: unless-stopped
env_file: .env
volumes:
- /mnt/mirror/syncthing:/var/syncthing
ports:
- 8384:8384 # Web UI
- 22000:22000/tcp # TCP file transfers
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
networks:
default:
name: $DOCKER_MY_NETWORK
external: true
.env
# GENERAL
DOCKER_MY_NETWORK=caddy_net
TZ=Europe/Bratislava
# SYNCTHING
PUID=1000
PGID=1000
Reverse proxy
Caddy v2 is used, details here.
Caddyfile
sync.{$MY_DOMAIN} {
reverse_proxy syncthing:8384
}
First run
visit the webgui, setup username and password in settings > GUI.
- intall sync on other devices
- add folders, confirm them on webgui
sync should just start.
Trouble shooting
Update
Manual image update:
docker compose pull
docker compose up -d
docker image prune