Skip to content

Instantly share code, notes, and snippets.

@Adammatthiesen
Created January 13, 2024 10:17
Show Gist options
  • Save Adammatthiesen/84243fa11bf96a59bfb237152eb52fa7 to your computer and use it in GitHub Desktop.
Save Adammatthiesen/84243fa11bf96a59bfb237152eb52fa7 to your computer and use it in GitHub Desktop.
SyncThing
version: "2.1"
services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing-node
hostname: syncthing #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- /path/to/syncthing-data/config:/config
- /path/to/sync:/sync
ports:
- 8384:8384
- 22000:22000/tcp #Node Port <Port Forward:TCP>
- 22000:22000/udp #Node Port <Port Forward:UDP>
- 21027:21027/udp #Local Port
restart: unless-stopped
---
version: '3'
services:
syncthing-relay-discovery:
container_name: syncthing-relay-discovery
restart: always
image: t4skforce/syncthing-relay-discovery:latest
environment:
RATE_GLOBAL: '0'
RATE_SESSION: '0'
PROVIDED_BY: "Pretty Name Here"
POOLS: "https://relays.syncthing.net/endpoint" # Make This entry "" to run a private relay.
DISC_OPTS: '-debug'
ports:
- 22026:22026 # Discovery Server
- 22067:22067 # Relay Server - Main Port
- 22070:22070 # Relay Server Optional Statistics port for public relays pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment