services: syncthing: image: docker.io/syncthing/syncthing:latest container_name: syncthing restart: always user: {{ users['syncthing'] }}:{{ users['syncthing'] }} environment: - PUID={{ users['syncthing'] }} - PGID={{ users['syncthing'] }} ports: - 127.0.0.1:{{ ports['syncthing_webui'] }}:8384 # Web UI - {{ ports['syncthing_tcp'] }}:22000/tcp # TCP file transfers - {{ ports['syncthing_udp'] }}:22000/udp # QUIC file transfers volumes: - {{ volumes['syncthing_datadir'] }}:/var/syncthing stdiscosrv: image: docker.io/syncthing/discosrv:latest container_name: syncthing-discosrv restart: always command: - "-http" environment: - PUID={{ users['syncthing_discosrv'] }} - PGID={{ users['syncthing_discosrv'] }} networks: - discosrv ports: - 127.0.0.1:{{ ports['syncthing_discosrv'] }}:8443 strelaysrv: image: docker.io/syncthing/relaysrv:latest container_name: syncthing-relaysrv restart: always command: - '-ext-address=:{{ ports["syncthing_relaysrv"] }}' - '-pools=' environment: - PUID={{ users['syncthing_relaysrv'] }} - PGID={{ users['syncthing_relaysrv'] }} networks: - relaysrv ports: - 22067:22067 volumes: - strelaysrv:/var/strelaysrv networks: discosrv: relaysrv: volumes: strelaysrv: