services: syncthing: image: lscr.io/linuxserver/syncthing:latest container_name: syncthing restart: unless-stopped hostname: ${SYNC_HOSTNAME:-homelab} environment: - PUID=${PUID:-1000} - PGID=${PGID:-1000} - TZ=${TZ:-Europe/Berlin} ports: - "${HTTP_PORT:-8384}:8384" - "${SYNC_PORT:-22000}:22000/tcp" - "${SYNC_PORT:-22000}:22000/udp" - "${DISCOVERY_PORT:-21027}:21027/udp" volumes: - ${DATA_PATH:-/srv/syncthing}:/config - ${SYNC_PATH:-/srv/sync}:/data