questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. groups:
  2. - name: Pocket ID Configuration
  3. description: Configure Pocket ID
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Pocket ID
  6. - name: Network Configuration
  7. description: Configure Network for Pocket ID
  8. - name: Storage Configuration
  9. description: Configure Storage for Pocket ID
  10. - name: Labels Configuration
  11. description: Configure Labels for Pocket ID
  12. - name: Resources Configuration
  13. description: Configure Resources for Pocket ID
  14. questions:
  15. - variable: TZ
  16. group: Pocket ID Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: pocket_id
  25. label: ""
  26. group: Pocket ID Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: app_url
  31. label: Application URL
  32. description: |
  33. The URL where Pocket ID will be accessible.</br>
  34. Examples:</br>
  35. - http://server-ip:8080</br>
  36. - https://pocket-id.example.com</br>
  37. - https://pocket-id.example.com:8443</br>
  38. schema:
  39. type: uri
  40. default: ""
  41. required: true
  42. - variable: trust_proxy
  43. label: Trust Proxy
  44. description: Whether the app is behind a reverse proxy.
  45. schema:
  46. type: boolean
  47. default: false
  48. - variable: additional_envs
  49. label: Additional Environment Variables
  50. schema:
  51. type: list
  52. default: []
  53. items:
  54. - variable: env
  55. label: Environment Variable
  56. schema:
  57. type: dict
  58. attrs:
  59. - variable: name
  60. label: Name
  61. schema:
  62. type: string
  63. required: true
  64. - variable: value
  65. label: Value
  66. schema:
  67. type: string
  68. - variable: run_as
  69. label: ""
  70. group: User and Group Configuration
  71. schema:
  72. type: dict
  73. attrs:
  74. - variable: user
  75. label: User ID
  76. description: The user id that Pocket ID files will be owned by.
  77. schema:
  78. type: int
  79. min: 568
  80. default: 568
  81. required: true
  82. - variable: group
  83. label: Group ID
  84. description: The group id that Pocket ID files will be owned by.
  85. schema:
  86. type: int
  87. min: 568
  88. default: 568
  89. required: true
  90. - variable: network
  91. label: ""
  92. group: Network Configuration
  93. schema:
  94. type: dict
  95. attrs:
  96. - variable: web_port
  97. label: WebUI Port
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: bind_mode
  102. label: Port Bind Mode
  103. description: |
  104. The port bind mode.</br>
  105. - Publish: The port will be published on the host for external access.</br>
  106. - Expose: The port will be exposed for inter-container communication.</br>
  107. - None: The port will not be exposed or published.</br>
  108. Note: If the Dockerfile defines an EXPOSE directive,
  109. the port will still be exposed for inter-container communication regardless of this setting.
  110. schema:
  111. type: string
  112. default: "published"
  113. enum:
  114. - value: "published"
  115. description: Publish port on the host for external access
  116. - value: "exposed"
  117. description: Expose port for inter-container communication
  118. - value: ""
  119. description: None
  120. - variable: port_number
  121. label: Port Number
  122. schema:
  123. type: int
  124. default: 30218
  125. min: 1
  126. max: 65535
  127. required: true
  128. - variable: host_ips
  129. label: Host IPs
  130. description: IPs on the host to bind this port
  131. schema:
  132. type: list
  133. show_if: [["bind_mode", "=", "published"]]
  134. default: []
  135. items:
  136. - variable: host_ip
  137. label: Host IP
  138. schema:
  139. type: string
  140. required: true
  141. $ref:
  142. - definitions/node_bind_ip
  143. - variable: host_network
  144. label: Host Network
  145. description: |
  146. Bind to the host network. It's recommended to keep this disabled.
  147. schema:
  148. type: boolean
  149. default: false
  150. - variable: storage
  151. label: ""
  152. group: Storage Configuration
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: data
  157. label: Data Storage
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: type
  162. label: Type
  163. description: |
  164. ixVolume: Is dataset created automatically by the system.</br>
  165. Host Path: Is a path that already exists on the system.
  166. schema:
  167. type: string
  168. required: true
  169. default: "ix_volume"
  170. enum:
  171. - value: "host_path"
  172. description: Host Path (Path that already exists on the system)
  173. - value: "ix_volume"
  174. description: ixVolume (Dataset created automatically by the system)
  175. - variable: ix_volume_config
  176. label: ixVolume Configuration
  177. description: The configuration for the ixVolume dataset.
  178. schema:
  179. type: dict
  180. show_if: [["type", "=", "ix_volume"]]
  181. $ref:
  182. - "normalize/ix_volume"
  183. attrs:
  184. - variable: acl_enable
  185. label: Enable ACL
  186. description: Enable ACL for the storage.
  187. schema:
  188. type: boolean
  189. default: false
  190. - variable: dataset_name
  191. label: Dataset Name
  192. description: The name of the dataset to use for storage.
  193. schema:
  194. type: string
  195. required: true
  196. hidden: true
  197. default: "data"
  198. - variable: acl_entries
  199. label: ACL Configuration
  200. schema:
  201. type: dict
  202. show_if: [["acl_enable", "=", true]]
  203. attrs: []
  204. - variable: host_path_config
  205. label: Host Path Configuration
  206. schema:
  207. type: dict
  208. show_if: [["type", "=", "host_path"]]
  209. attrs:
  210. - variable: acl_enable
  211. label: Enable ACL
  212. description: Enable ACL for the storage.
  213. schema:
  214. type: boolean
  215. default: false
  216. - variable: acl
  217. label: ACL Configuration
  218. schema:
  219. type: dict
  220. show_if: [["acl_enable", "=", true]]
  221. attrs: []
  222. $ref:
  223. - "normalize/acl"
  224. - variable: path
  225. label: Host Path
  226. description: The host path to use for storage.
  227. schema:
  228. type: hostpath
  229. show_if: [["acl_enable", "=", false]]
  230. required: true
  231. - variable: additional_storage
  232. label: Additional Storage
  233. schema:
  234. type: list
  235. default: []
  236. items:
  237. - variable: storageEntry
  238. label: Storage Entry
  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.</br>
  247. SMB Share: Is a SMB share that is mounted to as a volume.
  248. schema:
  249. type: string
  250. required: true
  251. default: "ix_volume"
  252. enum:
  253. - value: "host_path"
  254. description: Host Path (Path that already exists on the system)
  255. - value: "ix_volume"
  256. description: ixVolume (Dataset created automatically by the system)
  257. - value: "cifs"
  258. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  259. - variable: read_only
  260. label: Read Only
  261. description: Mount the volume as read only.
  262. schema:
  263. type: boolean
  264. default: false
  265. - variable: mount_path
  266. label: Mount Path
  267. description: The path inside the container to mount the storage.
  268. schema:
  269. type: path
  270. required: true
  271. - variable: host_path_config
  272. label: Host Path Configuration
  273. schema:
  274. type: dict
  275. show_if: [["type", "=", "host_path"]]
  276. attrs:
  277. - variable: acl_enable
  278. label: Enable ACL
  279. description: Enable ACL for the storage.
  280. schema:
  281. type: boolean
  282. default: false
  283. - variable: acl
  284. label: ACL Configuration
  285. schema:
  286. type: dict
  287. show_if: [["acl_enable", "=", true]]
  288. attrs: []
  289. $ref:
  290. - "normalize/acl"
  291. - variable: path
  292. label: Host Path
  293. description: The host path to use for storage.
  294. schema:
  295. type: hostpath
  296. show_if: [["acl_enable", "=", false]]
  297. required: true
  298. - variable: ix_volume_config
  299. label: ixVolume Configuration
  300. description: The configuration for the ixVolume dataset.
  301. schema:
  302. type: dict
  303. show_if: [["type", "=", "ix_volume"]]
  304. $ref:
  305. - "normalize/ix_volume"
  306. attrs:
  307. - variable: acl_enable
  308. label: Enable ACL
  309. description: Enable ACL for the storage.
  310. schema:
  311. type: boolean
  312. default: false
  313. - variable: dataset_name
  314. label: Dataset Name
  315. description: The name of the dataset to use for storage.
  316. schema:
  317. type: string
  318. required: true
  319. default: "storage_entry"
  320. - variable: acl_entries
  321. label: ACL Configuration
  322. schema:
  323. type: dict
  324. show_if: [["acl_enable", "=", true]]
  325. attrs: []
  326. $ref:
  327. - "normalize/acl"
  328. - variable: cifs_config
  329. label: SMB Configuration
  330. description: The configuration for the SMB dataset.
  331. schema:
  332. type: dict
  333. show_if: [["type", "=", "cifs"]]
  334. attrs:
  335. - variable: server
  336. label: Server
  337. description: The server to mount the SMB share.
  338. schema:
  339. type: string
  340. required: true
  341. - variable: path
  342. label: Path
  343. description: The path to mount the SMB share.
  344. schema:
  345. type: string
  346. required: true
  347. - variable: username
  348. label: Username
  349. description: The username to use for the SMB share.
  350. schema:
  351. type: string
  352. required: true
  353. - variable: password
  354. label: Password
  355. description: The password to use for the SMB share.
  356. schema:
  357. type: string
  358. required: true
  359. private: true
  360. - variable: domain
  361. label: Domain
  362. description: The domain to use for the SMB share.
  363. schema:
  364. type: string
  365. - variable: labels
  366. label: ""
  367. group: Labels Configuration
  368. schema:
  369. type: list
  370. default: []
  371. items:
  372. - variable: label
  373. label: Label
  374. schema:
  375. type: dict
  376. attrs:
  377. - variable: key
  378. label: Key
  379. schema:
  380. type: string
  381. required: true
  382. - variable: value
  383. label: Value
  384. schema:
  385. type: string
  386. required: true
  387. - variable: containers
  388. label: Containers
  389. description: Containers where the label should be applied
  390. schema:
  391. type: list
  392. items:
  393. - variable: container
  394. label: Container
  395. schema:
  396. type: string
  397. required: true
  398. enum:
  399. - value: pocket-id
  400. description: pocket-id
  401. - variable: resources
  402. label: ""
  403. group: Resources Configuration
  404. schema:
  405. type: dict
  406. attrs:
  407. - variable: limits
  408. label: Limits
  409. schema:
  410. type: dict
  411. attrs:
  412. - variable: cpus
  413. label: CPUs
  414. description: CPUs limit for Pocket ID.
  415. schema:
  416. type: int
  417. default: 2
  418. required: true
  419. - variable: memory
  420. label: Memory (in MB)
  421. description: Memory limit for Pocket ID.
  422. schema:
  423. type: int
  424. default: 4096
  425. required: true