services: syncthing-valentin: image: syncthing/syncthing:2.0 container_name: syncthing-valentin hostname: syncthing-valentin environment: - PUID=1000 - PGID=1000 volumes: - config:/var/syncthing/config - valentin_documents:/valentin/Documents - valentin_photos:/valentin/Photos ports: - target: 22000 published: 22000 mode: host - target: 21027 published: 21027 mode: host - 8384 networks: - default - proxy labels: - "traefik.enable=true" - "traefik.http.routers.syncthing-valentin.rule=Host(`syncthing-valentin.lan`)" - "traefik.http.services.syncthing-valentin.loadbalancer.server.port=8384" restart: unless-stopped healthcheck: test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1 interval: 1m timeout: 30s retries: 10 volumes: config: driver: local driver_opts: type: 'none' o: 'bind' device: '/app/syncthing-valentin/config' valentin_documents: driver_opts: type: 'nfs' o: 'addr=truenas.lan' device: ':/mnt/main_storage/valentin/Documents' valentin_photos: driver_opts: type: 'nfs' o: 'addr=truenas.lan' device: ':/mnt/main_storage/valentin/Photos' networks: proxy: external: true name: proxy