--- version: "2.1" services: syncthing: image: linuxserver/syncthing container_name: syncthing #hostname: syncthing #optional environment: - PUID=1000 - PGID=100 - TZ=Asia/Kuala_Lumpur volumes: - ./config:/config - ./sync:/sync ports: - 8384:8384 - 22000:22000 - 21027:21027/udp restart: unless-stopped