questions.yaml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. groups:
  2. - name: Syncthing Configuration
  3. description: Configure Syncthing
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Syncthing
  6. - name: Network Configuration
  7. description: Configure Network for Syncthing
  8. - name: Storage Configuration
  9. description: Configure Storage for Syncthing
  10. - name: Labels Configuration
  11. description: Configure Labels for Syncthing
  12. - name: Resources Configuration
  13. description: Configure Resources for Syncthing
  14. questions:
  15. - variable: TZ
  16. group: Syncthing Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: syncthing
  25. label: ""
  26. group: Syncthing Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: additional_envs
  31. label: Additional Environment Variables
  32. schema:
  33. type: list
  34. default: []
  35. items:
  36. - variable: env
  37. label: Environment Variable
  38. schema:
  39. type: dict
  40. attrs:
  41. - variable: name
  42. label: Name
  43. schema:
  44. type: string
  45. required: true
  46. - variable: value
  47. label: Value
  48. schema:
  49. type: string
  50. - variable: run_as
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: user
  57. label: User ID
  58. description: The user id that Syncthing files will be owned by.
  59. schema:
  60. type: int
  61. min: 0
  62. default: 568
  63. required: true
  64. - variable: group
  65. label: Group ID
  66. description: The group id that Syncthing files will be owned by.
  67. schema:
  68. type: int
  69. min: 0
  70. default: 568
  71. required: true
  72. - variable: network
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: web_port
  79. label: WebUI Port
  80. schema:
  81. type: dict
  82. attrs:
  83. - variable: bind_mode
  84. label: Port Bind Mode
  85. description: |
  86. The port bind mode.</br>
  87. - Publish: The port will be published on the host for external access.</br>
  88. - Expose: The port will be exposed for inter-container communication.</br>
  89. - None: The port will not be exposed or published.</br>
  90. Note: If the Dockerfile defines an EXPOSE directive,
  91. the port will still be exposed for inter-container communication regardless of this setting.
  92. schema:
  93. type: string
  94. default: "published"
  95. enum:
  96. - value: "published"
  97. description: Publish port on the host for external access
  98. - value: "exposed"
  99. description: Expose port for inter-container communication
  100. - value: ""
  101. description: None
  102. - variable: port_number
  103. label: Port Number
  104. schema:
  105. type: int
  106. default: 20910
  107. min: 1
  108. max: 65535
  109. required: true
  110. - variable: host_ips
  111. label: Host IPs
  112. description: IPs on the host to bind this port
  113. schema:
  114. type: list
  115. show_if: [["bind_mode", "=", "published"]]
  116. default: []
  117. items:
  118. - variable: host_ip
  119. label: Host IP
  120. schema:
  121. type: string
  122. required: true
  123. $ref:
  124. - definitions/node_bind_ip
  125. - variable: tcp_port
  126. label: TCP Port
  127. schema:
  128. type: dict
  129. show_if: [["host_network", "=", false]]
  130. attrs:
  131. - variable: bind_mode
  132. label: Port Bind Mode
  133. description: |
  134. The port bind mode.</br>
  135. - Publish: The port will be published on the host for external access.</br>
  136. - Expose: The port will be exposed for inter-container communication.</br>
  137. - None: The port will not be exposed or published.</br>
  138. Note: If the Dockerfile defines an EXPOSE directive,
  139. the port will still be exposed for inter-container communication regardless of this setting.
  140. schema:
  141. type: string
  142. default: "published"
  143. enum:
  144. - value: "published"
  145. description: Publish port on the host for external access
  146. - value: "exposed"
  147. description: Expose port for inter-container communication
  148. - value: ""
  149. description: None
  150. - variable: port_number
  151. label: Port Number
  152. schema:
  153. type: int
  154. show_if: [["bind_mode", "=", "published"]]
  155. default: 20978
  156. min: 1
  157. max: 65535
  158. required: true
  159. - variable: host_ips
  160. label: Host IPs
  161. description: IPs on the host to bind this port
  162. schema:
  163. type: list
  164. show_if: [["bind_mode", "=", "published"]]
  165. default: []
  166. items:
  167. - variable: host_ip
  168. label: Host IP
  169. schema:
  170. type: string
  171. required: true
  172. $ref:
  173. - definitions/node_bind_ip
  174. - variable: udp_port
  175. label: UDP Port
  176. schema:
  177. type: dict
  178. show_if: [["host_network", "=", false]]
  179. attrs:
  180. - variable: bind_mode
  181. label: Port Bind Mode
  182. description: |
  183. The port bind mode.</br>
  184. - Publish: The port will be published on the host for external access.</br>
  185. - Expose: The port will be exposed for inter-container communication.</br>
  186. - None: The port will not be exposed or published.</br>
  187. Note: If the Dockerfile defines an EXPOSE directive,
  188. the port will still be exposed for inter-container communication regardless of this setting.
  189. schema:
  190. type: string
  191. default: "published"
  192. enum:
  193. - value: "published"
  194. description: Publish port on the host for external access
  195. - value: "exposed"
  196. description: Expose port for inter-container communication
  197. - value: ""
  198. description: None
  199. - variable: port_number
  200. label: Port Number
  201. schema:
  202. type: int
  203. show_if: [["bind_mode", "=", "published"]]
  204. default: 20970
  205. min: 1
  206. max: 65535
  207. required: true
  208. - variable: host_ips
  209. label: Host IPs
  210. description: IPs on the host to bind this port
  211. schema:
  212. type: list
  213. show_if: [["bind_mode", "=", "published"]]
  214. default: []
  215. items:
  216. - variable: host_ip
  217. label: Host IP
  218. schema:
  219. type: string
  220. required: true
  221. $ref:
  222. - definitions/node_bind_ip
  223. - variable: host_network
  224. label: Host Network
  225. description: |
  226. Enabling this will use the host network for Syncthing.</br>
  227. The TCP and UDP ports will listen on port 22000. </br>
  228. Web UI will listen on the port specified above.
  229. schema:
  230. type: boolean
  231. default: false
  232. - variable: dns_opts
  233. label: DNS Options
  234. description: |
  235. DNS options for the container.</br>
  236. Format: key:value</br>
  237. Example: attempts:3
  238. schema:
  239. type: list
  240. default: []
  241. items:
  242. - variable: option
  243. label: Option
  244. schema:
  245. type: string
  246. required: true
  247. - variable: certificate_id
  248. label: Certificate
  249. description: The certificate to use for Syncthing.
  250. schema:
  251. type: int
  252. "null": true
  253. $ref:
  254. - "definitions/certificate"
  255. - variable: storage
  256. label: ""
  257. group: Storage Configuration
  258. schema:
  259. type: dict
  260. attrs:
  261. - variable: config
  262. label: Syncthing Config Storage
  263. description: The path to store Syncthing Config.
  264. schema:
  265. type: dict
  266. attrs:
  267. - variable: type
  268. label: Type
  269. description: |
  270. ixVolume: Is dataset created automatically by the system.</br>
  271. Host Path: Is a path that already exists on the system.
  272. schema:
  273. type: string
  274. required: true
  275. default: "ix_volume"
  276. enum:
  277. - value: "host_path"
  278. description: Host Path (Path that already exists on the system)
  279. - value: "ix_volume"
  280. description: ixVolume (Dataset created automatically by the system)
  281. - variable: ix_volume_config
  282. label: ixVolume Configuration
  283. description: The configuration for the ixVolume dataset.
  284. schema:
  285. type: dict
  286. show_if: [["type", "=", "ix_volume"]]
  287. $ref:
  288. - "normalize/ix_volume"
  289. attrs:
  290. - variable: acl_enable
  291. label: Enable ACL
  292. description: Enable ACL for the storage.
  293. schema:
  294. type: boolean
  295. default: false
  296. - variable: dataset_name
  297. label: Dataset Name
  298. description: The name of the dataset to use for storage.
  299. schema:
  300. type: string
  301. required: true
  302. hidden: true
  303. default: "config"
  304. - variable: acl_entries
  305. label: ACL Configuration
  306. schema:
  307. type: dict
  308. show_if: [["acl_enable", "=", true]]
  309. attrs: []
  310. - variable: host_path_config
  311. label: Host Path Configuration
  312. schema:
  313. type: dict
  314. show_if: [["type", "=", "host_path"]]
  315. attrs:
  316. - variable: acl_enable
  317. label: Enable ACL
  318. description: Enable ACL for the storage.
  319. schema:
  320. type: boolean
  321. default: false
  322. - variable: acl
  323. label: ACL Configuration
  324. schema:
  325. type: dict
  326. show_if: [["acl_enable", "=", true]]
  327. attrs: []
  328. $ref:
  329. - "normalize/acl"
  330. - variable: path
  331. label: Host Path
  332. description: The host path to use for storage.
  333. schema:
  334. type: hostpath
  335. show_if: [["acl_enable", "=", false]]
  336. required: true
  337. - variable: additional_storage
  338. label: Additional Storage
  339. schema:
  340. type: list
  341. default: []
  342. items:
  343. - variable: storageEntry
  344. label: Storage Entry
  345. schema:
  346. type: dict
  347. attrs:
  348. - variable: type
  349. label: Type
  350. description: |
  351. ixVolume: Is dataset created automatically by the system.</br>
  352. Host Path: Is a path that already exists on the system.</br>
  353. SMB Share: Is a SMB share that is mounted to as a volume.
  354. schema:
  355. type: string
  356. required: true
  357. default: "ix_volume"
  358. enum:
  359. - value: "host_path"
  360. description: Host Path (Path that already exists on the system)
  361. - value: "ix_volume"
  362. description: ixVolume (Dataset created automatically by the system)
  363. - value: "cifs"
  364. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  365. - variable: read_only
  366. label: Read Only
  367. description: Mount the volume as read only.
  368. schema:
  369. type: boolean
  370. default: false
  371. - variable: mount_path
  372. label: Mount Path
  373. description: The path inside the container to mount the storage.
  374. schema:
  375. type: path
  376. required: true
  377. - variable: host_path_config
  378. label: Host Path Configuration
  379. schema:
  380. type: dict
  381. show_if: [["type", "=", "host_path"]]
  382. attrs:
  383. - variable: acl_enable
  384. label: Enable ACL
  385. description: Enable ACL for the storage.
  386. schema:
  387. type: boolean
  388. default: false
  389. - variable: acl
  390. label: ACL Configuration
  391. schema:
  392. type: dict
  393. show_if: [["acl_enable", "=", true]]
  394. attrs: []
  395. $ref:
  396. - "normalize/acl"
  397. - variable: path
  398. label: Host Path
  399. description: The host path to use for storage.
  400. schema:
  401. type: hostpath
  402. show_if: [["acl_enable", "=", false]]
  403. required: true
  404. - variable: ix_volume_config
  405. label: ixVolume Configuration
  406. description: The configuration for the ixVolume dataset.
  407. schema:
  408. type: dict
  409. show_if: [["type", "=", "ix_volume"]]
  410. $ref:
  411. - "normalize/ix_volume"
  412. attrs:
  413. - variable: acl_enable
  414. label: Enable ACL
  415. description: Enable ACL for the storage.
  416. schema:
  417. type: boolean
  418. default: false
  419. - variable: dataset_name
  420. label: Dataset Name
  421. description: The name of the dataset to use for storage.
  422. schema:
  423. type: string
  424. required: true
  425. default: "storage_entry"
  426. - variable: acl_entries
  427. label: ACL Configuration
  428. schema:
  429. type: dict
  430. show_if: [["acl_enable", "=", true]]
  431. attrs: []
  432. - variable: cifs_config
  433. label: SMB Configuration
  434. description: The configuration for the SMB dataset.
  435. schema:
  436. type: dict
  437. show_if: [["type", "=", "cifs"]]
  438. attrs:
  439. - variable: server
  440. label: Server
  441. description: The server to mount the SMB share.
  442. schema:
  443. type: string
  444. required: true
  445. - variable: path
  446. label: Path
  447. description: The path to mount the SMB share.
  448. schema:
  449. type: string
  450. required: true
  451. - variable: username
  452. label: Username
  453. description: The username to use for the SMB share.
  454. schema:
  455. type: string
  456. required: true
  457. - variable: password
  458. label: Password
  459. description: The password to use for the SMB share.
  460. schema:
  461. type: string
  462. required: true
  463. private: true
  464. - variable: domain
  465. label: Domain
  466. description: The domain to use for the SMB share.
  467. schema:
  468. type: string
  469. - variable: labels
  470. label: ""
  471. group: Labels Configuration
  472. schema:
  473. type: list
  474. default: []
  475. items:
  476. - variable: label
  477. label: Label
  478. schema:
  479. type: dict
  480. attrs:
  481. - variable: key
  482. label: Key
  483. schema:
  484. type: string
  485. required: true
  486. - variable: value
  487. label: Value
  488. schema:
  489. type: string
  490. required: true
  491. - variable: containers
  492. label: Containers
  493. description: Containers where the label should be applied
  494. schema:
  495. type: list
  496. items:
  497. - variable: container
  498. label: Container
  499. schema:
  500. type: string
  501. required: true
  502. enum:
  503. - value: syncthing
  504. description: syncthing
  505. - variable: resources
  506. label: ""
  507. group: Resources Configuration
  508. schema:
  509. type: dict
  510. attrs:
  511. - variable: limits
  512. label: Limits
  513. schema:
  514. type: dict
  515. attrs:
  516. - variable: cpus
  517. label: CPUs
  518. description: CPUs limit for Syncthing.
  519. schema:
  520. type: int
  521. default: 2
  522. required: true
  523. - variable: memory
  524. label: Memory (in MB)
  525. description: Memory limit for Syncthing.
  526. schema:
  527. type: int
  528. default: 4096
  529. required: true