version: "3.5" services: syncthing: container_name: linuxserver-syncthing image: lscr.io/linuxserver/syncthing security_opt: - no-new-privileges:true networks: - custom-bridge restart: unless-stopped ports: - ${SYNCTHING_WEBUI_PORT:-8384}:8384 - ${SYNCTHING_DSC_PORT:-21027}:21027/udp - ${SYNCTHING_LST_PORT:-22000}:22000/tcp - ${SYNCTHING_LST_PORT:-22000}:22000/udp env_file: .env sysctls: - net.core.rmem_max=2097152 volumes: - ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config - ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data networks: custom-bridge: name: custom-bridge driver: bridge