questions.yaml 20 KB

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