questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. groups:
  2. - name: Logseq Configuration
  3. description: Configure Logseq
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Logseq
  6. - name: Network Configuration
  7. description: Configure Network for Logseq
  8. - name: Storage Configuration
  9. description: Configure Storage for Logseq
  10. - name: Labels Configuration
  11. description: Configure Labels for Logseq
  12. - name: Resources Configuration
  13. description: Configure Resources for Logseq
  14. questions:
  15. - variable: logseq
  16. label: ""
  17. group: Logseq Configuration
  18. schema:
  19. type: dict
  20. attrs:
  21. - variable: additional_envs
  22. label: Additional Environment Variables
  23. schema:
  24. type: list
  25. default: []
  26. items:
  27. - variable: env
  28. label: Environment Variable
  29. schema:
  30. type: dict
  31. attrs:
  32. - variable: name
  33. label: Name
  34. schema:
  35. type: string
  36. required: true
  37. - variable: value
  38. label: Value
  39. schema:
  40. type: string
  41. - variable: run_as
  42. label: ""
  43. group: User and Group Configuration
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: user
  48. label: User ID
  49. description: The user id that Logseq files will be owned by.
  50. schema:
  51. type: int
  52. min: 568
  53. default: 568
  54. required: true
  55. - variable: group
  56. label: Group ID
  57. description: The group id that Logseq files will be owned by.
  58. schema:
  59. type: int
  60. min: 568
  61. default: 568
  62. required: true
  63. - variable: network
  64. label: ""
  65. group: Network Configuration
  66. schema:
  67. type: dict
  68. attrs:
  69. - variable: web_port
  70. label: WebUI Port
  71. schema:
  72. type: dict
  73. attrs:
  74. - variable: bind_mode
  75. label: Port Bind Mode
  76. description: |
  77. The port bind mode.</br>
  78. - Publish: The port will be published on the host for external access.</br>
  79. - Expose: The port will be exposed for inter-container communication.</br>
  80. - None: The port will not be exposed or published.</br>
  81. Note: If the Dockerfile defines an EXPOSE directive,
  82. the port will still be exposed for inter-container communication regardless of this setting.
  83. schema:
  84. type: string
  85. default: "published"
  86. enum:
  87. - value: "published"
  88. description: Publish port on the host for external access
  89. - value: "exposed"
  90. description: Expose port for inter-container communication
  91. - value: ""
  92. description: None
  93. - variable: port_number
  94. label: Port Number
  95. schema:
  96. type: int
  97. default: 30086
  98. min: 1
  99. max: 65535
  100. required: true
  101. - variable: host_ips
  102. label: Host IPs
  103. description: IPs on the host to bind this port
  104. schema:
  105. type: list
  106. show_if: [["bind_mode", "=", "published"]]
  107. default: []
  108. items:
  109. - variable: host_ip
  110. label: Host IP
  111. schema:
  112. type: string
  113. required: true
  114. $ref:
  115. - definitions/node_bind_ip
  116. - variable: host_network
  117. label: Host Network
  118. description: |
  119. Bind to the host network. It's recommended to keep this disabled.
  120. schema:
  121. type: boolean
  122. default: false
  123. - variable: certificate_id
  124. label: Certificate ID
  125. description: The certificate id to use for the https endpoint.
  126. schema:
  127. type: int
  128. "null": true
  129. $ref:
  130. - "definitions/certificate"
  131. - variable: storage
  132. label: ""
  133. group: Storage Configuration
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: additional_storage
  138. label: Additional Storage
  139. schema:
  140. type: list
  141. default: []
  142. items:
  143. - variable: storageEntry
  144. label: Storage Entry
  145. schema:
  146. type: dict
  147. attrs:
  148. - variable: type
  149. label: Type
  150. description: |
  151. ixVolume: Is dataset created automatically by the system.</br>
  152. Host Path: Is a path that already exists on the system.</br>
  153. SMB Share: Is a SMB share that is mounted to as a volume.
  154. schema:
  155. type: string
  156. required: true
  157. default: "ix_volume"
  158. enum:
  159. - value: "host_path"
  160. description: Host Path (Path that already exists on the system)
  161. - value: "ix_volume"
  162. description: ixVolume (Dataset created automatically by the system)
  163. - value: "cifs"
  164. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  165. - variable: read_only
  166. label: Read Only
  167. description: Mount the volume as read only.
  168. schema:
  169. type: boolean
  170. default: false
  171. - variable: mount_path
  172. label: Mount Path
  173. description: The path inside the container to mount the storage.
  174. schema:
  175. type: path
  176. required: true
  177. - variable: host_path_config
  178. label: Host Path Configuration
  179. schema:
  180. type: dict
  181. show_if: [["type", "=", "host_path"]]
  182. attrs:
  183. - variable: acl_enable
  184. label: Enable ACL
  185. description: Enable ACL for the storage.
  186. schema:
  187. type: boolean
  188. default: false
  189. - variable: acl
  190. label: ACL Configuration
  191. schema:
  192. type: dict
  193. show_if: [["acl_enable", "=", true]]
  194. attrs: []
  195. $ref:
  196. - "normalize/acl"
  197. - variable: path
  198. label: Host Path
  199. description: The host path to use for storage.
  200. schema:
  201. type: hostpath
  202. show_if: [["acl_enable", "=", false]]
  203. required: true
  204. - variable: ix_volume_config
  205. label: ixVolume Configuration
  206. description: The configuration for the ixVolume dataset.
  207. schema:
  208. type: dict
  209. show_if: [["type", "=", "ix_volume"]]
  210. $ref:
  211. - "normalize/ix_volume"
  212. attrs:
  213. - variable: acl_enable
  214. label: Enable ACL
  215. description: Enable ACL for the storage.
  216. schema:
  217. type: boolean
  218. default: false
  219. - variable: dataset_name
  220. label: Dataset Name
  221. description: The name of the dataset to use for storage.
  222. schema:
  223. type: string
  224. required: true
  225. default: "storage_entry"
  226. - variable: acl_entries
  227. label: ACL Configuration
  228. schema:
  229. type: dict
  230. show_if: [["acl_enable", "=", true]]
  231. attrs: []
  232. - variable: cifs_config
  233. label: SMB Configuration
  234. description: The configuration for the SMB dataset.
  235. schema:
  236. type: dict
  237. show_if: [["type", "=", "cifs"]]
  238. attrs:
  239. - variable: server
  240. label: Server
  241. description: The server to mount the SMB share.
  242. schema:
  243. type: string
  244. required: true
  245. - variable: path
  246. label: Path
  247. description: The path to mount the SMB share.
  248. schema:
  249. type: string
  250. required: true
  251. - variable: username
  252. label: Username
  253. description: The username to use for the SMB share.
  254. schema:
  255. type: string
  256. required: true
  257. - variable: password
  258. label: Password
  259. description: The password to use for the SMB share.
  260. schema:
  261. type: string
  262. required: true
  263. private: true
  264. - variable: domain
  265. label: Domain
  266. description: The domain to use for the SMB share.
  267. schema:
  268. type: string
  269. - variable: labels
  270. label: ""
  271. group: Labels Configuration
  272. schema:
  273. type: list
  274. default: []
  275. items:
  276. - variable: label
  277. label: Label
  278. schema:
  279. type: dict
  280. attrs:
  281. - variable: key
  282. label: Key
  283. schema:
  284. type: string
  285. required: true
  286. - variable: value
  287. label: Value
  288. schema:
  289. type: string
  290. required: true
  291. - variable: containers
  292. label: Containers
  293. description: Containers where the label should be applied
  294. schema:
  295. type: list
  296. items:
  297. - variable: container
  298. label: Container
  299. schema:
  300. type: string
  301. required: true
  302. enum:
  303. - value: logseq
  304. description: logseq
  305. - variable: resources
  306. label: ""
  307. group: Resources Configuration
  308. schema:
  309. type: dict
  310. attrs:
  311. - variable: limits
  312. label: Limits
  313. schema:
  314. type: dict
  315. attrs:
  316. - variable: cpus
  317. label: CPUs
  318. description: CPUs limit for Logseq.
  319. schema:
  320. type: int
  321. default: 2
  322. required: true
  323. - variable: memory
  324. label: Memory (in MB)
  325. description: Memory limit for Logseq.
  326. schema:
  327. type: int
  328. default: 4096
  329. required: true