questions.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. groups:
  2. - name: PiGallery2 Configuration
  3. description: Configure PiGallery2
  4. - name: User and Group Configuration
  5. description: Configure User and Group for PiGallery2
  6. - name: Network Configuration
  7. description: Configure Network for PiGallery2
  8. - name: Storage Configuration
  9. description: Configure Storage for PiGallery2
  10. - name: Labels Configuration
  11. description: Configure Labels for PiGallery2
  12. - name: Resources Configuration
  13. description: Configure Resources for PiGallery2
  14. questions:
  15. - variable: pigallery
  16. label: ""
  17. group: PiGallery2 Configuration
  18. schema:
  19. type: dict
  20. attrs:
  21. - variable: application_title
  22. label: Application Title
  23. description: The title of the PiGallery2 application.
  24. schema:
  25. type: string
  26. default: "PiGallery 2"
  27. required: true
  28. - variable: additional_envs
  29. label: Additional Environment Variables
  30. schema:
  31. type: list
  32. default: []
  33. items:
  34. - variable: env
  35. label: Environment Variable
  36. schema:
  37. type: dict
  38. attrs:
  39. - variable: name
  40. label: Name
  41. schema:
  42. type: string
  43. required: true
  44. - variable: value
  45. label: Value
  46. schema:
  47. type: string
  48. - variable: run_as
  49. label: ""
  50. group: User and Group Configuration
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: user
  55. label: User ID
  56. description: The user id that PiGallery2 files will be owned by.
  57. schema:
  58. type: int
  59. min: 568
  60. default: 568
  61. required: true
  62. - variable: group
  63. label: Group ID
  64. description: The group id that PiGallery2 files will be owned by.
  65. schema:
  66. type: int
  67. min: 568
  68. default: 568
  69. required: true
  70. - variable: network
  71. label: ""
  72. group: Network Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: web_port
  77. label: WebUI Port
  78. schema:
  79. type: dict
  80. attrs:
  81. - variable: bind_mode
  82. label: Port Bind Mode
  83. description: |
  84. The port bind mode.</br>
  85. - Publish: The port will be published on the host for external access.</br>
  86. - Expose: The port will be exposed for inter-container communication.</br>
  87. - None: The port will not be exposed or published.</br>
  88. Note: If the Dockerfile defines an EXPOSE directive,
  89. the port will still be exposed for inter-container communication regardless of this setting.
  90. schema:
  91. type: string
  92. default: "published"
  93. enum:
  94. - value: "published"
  95. description: Publish port on the host for external access
  96. - value: "exposed"
  97. description: Expose port for inter-container communication
  98. - value: ""
  99. description: None
  100. - variable: port_number
  101. label: Port Number
  102. schema:
  103. type: int
  104. default: 30099
  105. min: 1
  106. max: 65535
  107. required: true
  108. - variable: host_ips
  109. label: Host IPs
  110. description: IPs on the host to bind this port
  111. schema:
  112. type: list
  113. show_if: [["bind_mode", "=", "published"]]
  114. default: []
  115. items:
  116. - variable: host_ip
  117. label: Host IP
  118. schema:
  119. type: string
  120. required: true
  121. $ref:
  122. - definitions/node_bind_ip
  123. - variable: host_network
  124. label: Host Network
  125. description: |
  126. Bind to the host network. It's recommended to keep this disabled.
  127. schema:
  128. type: boolean
  129. default: false
  130. - variable: storage
  131. label: ""
  132. group: Storage Configuration
  133. schema:
  134. type: dict
  135. attrs:
  136. - variable: config
  137. label: PiGallery2 Config Storage
  138. description: The path to store PiGallery2 Config.
  139. schema:
  140. type: dict
  141. attrs:
  142. - variable: type
  143. label: Type
  144. description: |
  145. ixVolume: Is dataset created automatically by the system.</br>
  146. Host Path: Is a path that already exists on the system.
  147. schema:
  148. type: string
  149. required: true
  150. default: "ix_volume"
  151. enum:
  152. - value: "host_path"
  153. description: Host Path (Path that already exists on the system)
  154. - value: "ix_volume"
  155. description: ixVolume (Dataset created automatically by the system)
  156. - variable: ix_volume_config
  157. label: ixVolume Configuration
  158. description: The configuration for the ixVolume dataset.
  159. schema:
  160. type: dict
  161. show_if: [["type", "=", "ix_volume"]]
  162. $ref:
  163. - "normalize/ix_volume"
  164. attrs:
  165. - variable: acl_enable
  166. label: Enable ACL
  167. description: Enable ACL for the storage.
  168. schema:
  169. type: boolean
  170. default: false
  171. - variable: dataset_name
  172. label: Dataset Name
  173. description: The name of the dataset to use for storage.
  174. schema:
  175. type: string
  176. required: true
  177. hidden: true
  178. default: "config"
  179. - variable: acl_entries
  180. label: ACL Configuration
  181. schema:
  182. type: dict
  183. show_if: [["acl_enable", "=", true]]
  184. attrs: []
  185. - variable: host_path_config
  186. label: Host Path Configuration
  187. schema:
  188. type: dict
  189. show_if: [["type", "=", "host_path"]]
  190. attrs:
  191. - variable: acl_enable
  192. label: Enable ACL
  193. description: Enable ACL for the storage.
  194. schema:
  195. type: boolean
  196. default: false
  197. - variable: acl
  198. label: ACL Configuration
  199. schema:
  200. type: dict
  201. show_if: [["acl_enable", "=", true]]
  202. attrs: []
  203. $ref:
  204. - "normalize/acl"
  205. - variable: path
  206. label: Host Path
  207. description: The host path to use for storage.
  208. schema:
  209. type: hostpath
  210. show_if: [["acl_enable", "=", false]]
  211. required: true
  212. - variable: db
  213. label: PiGallery2 Database Storage
  214. description: The path to store PiGallery2 Database.
  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: "db"
  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: media
  289. label: PiGallery2 Media Storage
  290. description: The path to store PiGallery2 Media.
  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: "media"
  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: thumbnails
  365. label: PiGallery2 Thumbnails Storage
  366. description: The path to store PiGallery2 Thumbnails.
  367. schema:
  368. type: dict
  369. attrs:
  370. - variable: type
  371. label: Type
  372. description: |
  373. ixVolume: Is dataset created automatically by the system.</br>
  374. Host Path: Is a path that already exists on the system.
  375. schema:
  376. type: string
  377. required: true
  378. default: "ix_volume"
  379. enum:
  380. - value: "host_path"
  381. description: Host Path (Path that already exists on the system)
  382. - value: "ix_volume"
  383. description: ixVolume (Dataset created automatically by the system)
  384. - variable: ix_volume_config
  385. label: ixVolume Configuration
  386. description: The configuration for the ixVolume dataset.
  387. schema:
  388. type: dict
  389. show_if: [["type", "=", "ix_volume"]]
  390. $ref:
  391. - "normalize/ix_volume"
  392. attrs:
  393. - variable: acl_enable
  394. label: Enable ACL
  395. description: Enable ACL for the storage.
  396. schema:
  397. type: boolean
  398. default: false
  399. - variable: dataset_name
  400. label: Dataset Name
  401. description: The name of the dataset to use for storage.
  402. schema:
  403. type: string
  404. required: true
  405. hidden: true
  406. default: "thumbnails"
  407. - variable: acl_entries
  408. label: ACL Configuration
  409. schema:
  410. type: dict
  411. show_if: [["acl_enable", "=", true]]
  412. attrs: []
  413. - variable: host_path_config
  414. label: Host Path Configuration
  415. schema:
  416. type: dict
  417. show_if: [["type", "=", "host_path"]]
  418. attrs:
  419. - variable: acl_enable
  420. label: Enable ACL
  421. description: Enable ACL for the storage.
  422. schema:
  423. type: boolean
  424. default: false
  425. - variable: acl
  426. label: ACL Configuration
  427. schema:
  428. type: dict
  429. show_if: [["acl_enable", "=", true]]
  430. attrs: []
  431. $ref:
  432. - "normalize/acl"
  433. - variable: path
  434. label: Host Path
  435. description: The host path to use for storage.
  436. schema:
  437. type: hostpath
  438. show_if: [["acl_enable", "=", false]]
  439. required: true
  440. - variable: additional_storage
  441. label: Additional Storage
  442. schema:
  443. type: list
  444. default: []
  445. items:
  446. - variable: storageEntry
  447. label: Storage Entry
  448. schema:
  449. type: dict
  450. attrs:
  451. - variable: type
  452. label: Type
  453. description: |
  454. ixVolume: Is dataset created automatically by the system.</br>
  455. Host Path: Is a path that already exists on the system.</br>
  456. SMB Share: Is a SMB share that is mounted to as a volume.
  457. schema:
  458. type: string
  459. required: true
  460. default: "ix_volume"
  461. enum:
  462. - value: "host_path"
  463. description: Host Path (Path that already exists on the system)
  464. - value: "ix_volume"
  465. description: ixVolume (Dataset created automatically by the system)
  466. - value: "cifs"
  467. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  468. - variable: read_only
  469. label: Read Only
  470. description: Mount the volume as read only.
  471. schema:
  472. type: boolean
  473. default: false
  474. - variable: mount_path
  475. label: Mount Path
  476. description: The path inside the container to mount the storage.
  477. schema:
  478. type: path
  479. required: true
  480. - variable: host_path_config
  481. label: Host Path Configuration
  482. schema:
  483. type: dict
  484. show_if: [["type", "=", "host_path"]]
  485. attrs:
  486. - variable: acl_enable
  487. label: Enable ACL
  488. description: Enable ACL for the storage.
  489. schema:
  490. type: boolean
  491. default: false
  492. - variable: acl
  493. label: ACL Configuration
  494. schema:
  495. type: dict
  496. show_if: [["acl_enable", "=", true]]
  497. attrs: []
  498. $ref:
  499. - "normalize/acl"
  500. - variable: path
  501. label: Host Path
  502. description: The host path to use for storage.
  503. schema:
  504. type: hostpath
  505. show_if: [["acl_enable", "=", false]]
  506. required: true
  507. - variable: ix_volume_config
  508. label: ixVolume Configuration
  509. description: The configuration for the ixVolume dataset.
  510. schema:
  511. type: dict
  512. show_if: [["type", "=", "ix_volume"]]
  513. $ref:
  514. - "normalize/ix_volume"
  515. attrs:
  516. - variable: acl_enable
  517. label: Enable ACL
  518. description: Enable ACL for the storage.
  519. schema:
  520. type: boolean
  521. default: false
  522. - variable: dataset_name
  523. label: Dataset Name
  524. description: The name of the dataset to use for storage.
  525. schema:
  526. type: string
  527. required: true
  528. default: "storage_entry"
  529. - variable: acl_entries
  530. label: ACL Configuration
  531. schema:
  532. type: dict
  533. show_if: [["acl_enable", "=", true]]
  534. attrs: []
  535. $ref:
  536. - "normalize/acl"
  537. - variable: cifs_config
  538. label: SMB Configuration
  539. description: The configuration for the SMB dataset.
  540. schema:
  541. type: dict
  542. show_if: [["type", "=", "cifs"]]
  543. attrs:
  544. - variable: server
  545. label: Server
  546. description: The server to mount the SMB share.
  547. schema:
  548. type: string
  549. required: true
  550. - variable: path
  551. label: Path
  552. description: The path to mount the SMB share.
  553. schema:
  554. type: string
  555. required: true
  556. - variable: username
  557. label: Username
  558. description: The username to use for the SMB share.
  559. schema:
  560. type: string
  561. required: true
  562. - variable: password
  563. label: Password
  564. description: The password to use for the SMB share.
  565. schema:
  566. type: string
  567. required: true
  568. private: true
  569. - variable: domain
  570. label: Domain
  571. description: The domain to use for the SMB share.
  572. schema:
  573. type: string
  574. - variable: labels
  575. label: ""
  576. group: Labels Configuration
  577. schema:
  578. type: list
  579. default: []
  580. items:
  581. - variable: label
  582. label: Label
  583. schema:
  584. type: dict
  585. attrs:
  586. - variable: key
  587. label: Key
  588. schema:
  589. type: string
  590. required: true
  591. - variable: value
  592. label: Value
  593. schema:
  594. type: string
  595. required: true
  596. - variable: containers
  597. label: Containers
  598. description: Containers where the label should be applied
  599. schema:
  600. type: list
  601. items:
  602. - variable: container
  603. label: Container
  604. schema:
  605. type: string
  606. required: true
  607. enum:
  608. - value: pigallery
  609. description: pigallery
  610. - variable: resources
  611. label: ""
  612. group: Resources Configuration
  613. schema:
  614. type: dict
  615. attrs:
  616. - variable: limits
  617. label: Limits
  618. schema:
  619. type: dict
  620. attrs:
  621. - variable: cpus
  622. label: CPUs
  623. description: CPUs limit for PiGallery2.
  624. schema:
  625. type: int
  626. default: 2
  627. required: true
  628. - variable: memory
  629. label: Memory (in MB)
  630. description: Memory limit for PiGallery2.
  631. schema:
  632. type: int
  633. default: 4096
  634. required: true