# Syncthing - File synchronization
# Port: 8384 (web), 22000 (sync)
# Continuous file synchronization between devices
# Themed with self-hosted theme.park (Dracula)
version: "3.8"

services:
  syncthing:
    image: ghcr.io/linuxserver/syncthing:latest
    container_name: syncthing
    restart: on-failure:5
    security_opt:
      - no-new-privileges:true

    healthcheck:
      test: curl -f http://localhost:8384/ || exit 1

    environment:
      - PUID=1026
      - PGID=100
      - TZ=America/Los_Angeles
      - DOCKER_MODS=ghcr.io/themepark-dev/theme.park:syncthing
      - TP_SCHEME=http
      - TP_DOMAIN=192.168.0.200:8580
      - TP_THEME=dracula

    volumes:
      # This contains config.xml, certs, DB, AND all your real data folders
      - /volume2/metadata/docker/syncthing:/config:rw

    ports:
      - 8384:8384          # Web UI
      - 22000:22000/tcp    # Sync protocol
      - 22000:22000/udp    # QUIC
      - 21027:21027/udp    # Local discovery

networks:
  default:
    driver: bridge
