services:
  wishninja:
    build: .
    # For Unraid, replace `build: .` with your published image, e.g.:
    # image: gitea.example.com/youruser/wishninja:latest
    container_name: wishninja
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      # SQLite db, uploaded images and data-protection keys all live here.
      - ./data:/data
    environment:
      # Public URL — used to build links in invite / password-reset emails.
      WishNinja__BaseUrl: "http://localhost:8080"

      # First-run bootstrap admin (only used if the account doesn't already exist).
      SEED_ADMIN_EMAIL: "admin@example.com"
      SEED_ADMIN_PASSWORD: "ChangeMe!2345"

      # SMTP for password-reset and invite emails. Leave Host empty to log emails
      # instead of sending them (invite links are also shown in the admin UI).
      WishNinja__Smtp__Host: ""
      WishNinja__Smtp__Port: "587"
      WishNinja__Smtp__UseStartTls: "true"
      WishNinja__Smtp__User: ""
      WishNinja__Smtp__Password: ""
      WishNinja__Smtp__FromAddress: "wishninja@example.com"
      WishNinja__Smtp__FromName: "WishNinja"
