questions.yaml 16 KB

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