questions.yaml 22 KB

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