questions.yaml 19 KB

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