questions.yaml 16 KB

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