Use the following to set up Syncthing in a Docker Container:
--- services: syncthing: image: lscr.io/linuxserver/syncthing:latest container_name: syncthing hostname: syncthing #optional environment: - PUID=1000 - PGID=1000 - TZ=America/Los_Angeles volumes: - /volume1/docker/syncthing:/config - /volume1/path/to/folder1:/folder1 - /volume1/path/to/folder2:/folder2 ports: - 8384:8384 - 22000:22000/tcp - 22000:22000/udp - 21027:21027/udp restart: unless-stopped
Source