questions.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. groups:
  2. - name: Vaultwarden Configuration
  3. description: Configure Vaultwarden
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Vaultwarden
  6. - name: Network Configuration
  7. description: Configure Network for Vaultwarden
  8. - name: Storage Configuration
  9. description: Configure Storage for Vaultwarden
  10. - name: Labels Configuration
  11. description: Configure Labels for Vaultwarden
  12. - name: Resources Configuration
  13. description: Configure Resources for Vaultwarden
  14. questions:
  15. - variable: TZ
  16. group: Vaultwarden Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: vaultwarden
  25. label: ""
  26. group: Vaultwarden Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: postgres_image_selector
  31. label: Postgres Image (CAUTION)
  32. description: |
  33. If you are changing this after the postgres directory has been initialized,</br>
  34. STOP! and make sure you have a backup of your data.</br>
  35. Changing this will trigger an one way database upgrade.</br>
  36. You can only select newer versions of postgres.</br>
  37. Selecting an older version will refuse to start.</br>
  38. If something goes wrong, you will have to restore from backup.
  39. schema:
  40. type: string
  41. default: postgres_17_image
  42. required: true
  43. enum:
  44. - value: postgres_15_image
  45. description: Postgres 15
  46. - value: postgres_17_image
  47. description: Postgres 17
  48. - variable: db_password
  49. label: Database Password
  50. description: The password for Vaultwarden.
  51. schema:
  52. type: string
  53. default: ""
  54. required: true
  55. private: true
  56. - variable: admin_token
  57. label: Admin Token
  58. description: Setting this, will enable the admin portal
  59. schema:
  60. type: string
  61. default: ""
  62. private: true
  63. - variable: enable_websocket
  64. label: Enable Websocket
  65. description: Enable Websocket for Vaultwarden.
  66. schema:
  67. type: boolean
  68. default: true
  69. - variable: additional_envs
  70. label: Additional Environment Variables
  71. schema:
  72. type: list
  73. default: []
  74. items:
  75. - variable: env
  76. label: Environment Variable
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: name
  81. label: Name
  82. schema:
  83. type: string
  84. required: true
  85. - variable: value
  86. label: Value
  87. schema:
  88. type: string
  89. - variable: run_as
  90. label: ""
  91. group: User and Group Configuration
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: user
  96. label: User ID
  97. description: The user id that Vaultwarden files will be owned by.
  98. schema:
  99. type: int
  100. min: 568
  101. default: 568
  102. required: true
  103. - variable: group
  104. label: Group ID
  105. description: The group id that Vaultwarden files will be owned by.
  106. schema:
  107. type: int
  108. min: 568
  109. default: 568
  110. required: true
  111. - variable: network
  112. label: ""
  113. group: Network Configuration
  114. schema:
  115. type: dict
  116. attrs:
  117. - variable: web_port
  118. label: WebUI Port
  119. schema:
  120. type: dict
  121. attrs:
  122. - variable: bind_mode
  123. label: Port Bind Mode
  124. description: |
  125. The port bind mode.</br>
  126. - Publish: The port will be published on the host for external access.</br>
  127. - Expose: The port will be exposed for inter-container communication.</br>
  128. - None: The port will not be exposed or published.</br>
  129. Note: If the Dockerfile defines an EXPOSE directive,
  130. the port will still be exposed for inter-container communication regardless of this setting.
  131. schema:
  132. type: string
  133. default: "published"
  134. enum:
  135. - value: "published"
  136. description: Publish port on the host for external access
  137. - value: "exposed"
  138. description: Expose port for inter-container communication
  139. - value: ""
  140. description: None
  141. - variable: port_number
  142. label: Port Number
  143. schema:
  144. type: int
  145. default: 30032
  146. min: 1
  147. max: 65535
  148. required: true
  149. - variable: host_ips
  150. label: Host IPs
  151. description: IPs on the host to bind this port
  152. schema:
  153. type: list
  154. show_if: [["bind_mode", "=", "published"]]
  155. default: []
  156. items:
  157. - variable: host_ip
  158. label: Host IP
  159. schema:
  160. type: string
  161. required: true
  162. $ref:
  163. - definitions/node_bind_ip
  164. - variable: certificate_id
  165. label: Certificate ID
  166. description: |
  167. The certificate to use for Vaultwarden </br>
  168. Using the Rocket method for TLS setup is NOT recommended </br>
  169. Prefer a reverse proxy with a valid certificate
  170. schema:
  171. type: int
  172. "null": true
  173. $ref:
  174. - definitions/certificate
  175. - variable: domain
  176. label: Domain
  177. description: |
  178. The domain to use for Vaultwarden </br>
  179. Format is: https://sub.domain.tld:port
  180. schema:
  181. type: uri
  182. default: ""
  183. - variable: storage
  184. label: ""
  185. group: Storage Configuration
  186. schema:
  187. type: dict
  188. attrs:
  189. - variable: data
  190. label: Vaultwarden Data Storage
  191. description: The path to store Vaultwarden Data.
  192. schema:
  193. type: dict
  194. attrs:
  195. - variable: type
  196. label: Type
  197. description: |
  198. ixVolume: Is dataset created automatically by the system.</br>
  199. Host Path: Is a path that already exists on the system.
  200. schema:
  201. type: string
  202. required: true
  203. default: "ix_volume"
  204. enum:
  205. - value: "host_path"
  206. description: Host Path (Path that already exists on the system)
  207. - value: "ix_volume"
  208. description: ixVolume (Dataset created automatically by the system)
  209. - variable: ix_volume_config
  210. label: ixVolume Configuration
  211. description: The configuration for the ixVolume dataset.
  212. schema:
  213. type: dict
  214. show_if: [["type", "=", "ix_volume"]]
  215. $ref:
  216. - "normalize/ix_volume"
  217. attrs:
  218. - variable: acl_enable
  219. label: Enable ACL
  220. description: Enable ACL for the storage.
  221. schema:
  222. type: boolean
  223. default: false
  224. - variable: dataset_name
  225. label: Dataset Name
  226. description: The name of the dataset to use for storage.
  227. schema:
  228. type: string
  229. required: true
  230. hidden: true
  231. default: "data"
  232. - variable: acl_entries
  233. label: ACL Configuration
  234. schema:
  235. type: dict
  236. show_if: [["acl_enable", "=", true]]
  237. attrs: []
  238. - variable: host_path_config
  239. label: Host Path Configuration
  240. schema:
  241. type: dict
  242. show_if: [["type", "=", "host_path"]]
  243. attrs:
  244. - variable: acl_enable
  245. label: Enable ACL
  246. description: Enable ACL for the storage.
  247. schema:
  248. type: boolean
  249. default: false
  250. - variable: acl
  251. label: ACL Configuration
  252. schema:
  253. type: dict
  254. show_if: [["acl_enable", "=", true]]
  255. attrs: []
  256. $ref:
  257. - "normalize/acl"
  258. - variable: path
  259. label: Host Path
  260. description: The host path to use for storage.
  261. schema:
  262. type: hostpath
  263. show_if: [["acl_enable", "=", false]]
  264. required: true
  265. - variable: postgres_data
  266. label: Vaultwarden Postgres Data Storage
  267. description: The path to store Vaultwarden Postgres Data.
  268. schema:
  269. type: dict
  270. attrs:
  271. - variable: type
  272. label: Type
  273. description: |
  274. ixVolume: Is dataset created automatically by the system.</br>
  275. Host Path: Is a path that already exists on the system.
  276. schema:
  277. type: string
  278. required: true
  279. default: "ix_volume"
  280. enum:
  281. - value: "host_path"
  282. description: Host Path (Path that already exists on the system)
  283. - value: "ix_volume"
  284. description: ixVolume (Dataset created automatically by the system)
  285. - variable: ix_volume_config
  286. label: ixVolume Configuration
  287. description: The configuration for the ixVolume dataset.
  288. schema:
  289. type: dict
  290. show_if: [["type", "=", "ix_volume"]]
  291. $ref:
  292. - "normalize/ix_volume"
  293. attrs:
  294. - variable: acl_enable
  295. label: Enable ACL
  296. description: Enable ACL for the storage.
  297. schema:
  298. type: boolean
  299. default: false
  300. - variable: dataset_name
  301. label: Dataset Name
  302. description: The name of the dataset to use for storage.
  303. schema:
  304. type: string
  305. required: true
  306. hidden: true
  307. default: "postgres_data"
  308. - variable: acl_entries
  309. label: ACL Configuration
  310. schema:
  311. type: dict
  312. show_if: [["acl_enable", "=", true]]
  313. attrs: []
  314. - variable: host_path_config
  315. label: Host Path Configuration
  316. schema:
  317. type: dict
  318. show_if: [["type", "=", "host_path"]]
  319. attrs:
  320. - variable: acl_enable
  321. label: Enable ACL
  322. description: Enable ACL for the storage.
  323. schema:
  324. type: boolean
  325. default: false
  326. - variable: acl
  327. label: ACL Configuration
  328. schema:
  329. type: dict
  330. show_if: [["acl_enable", "=", true]]
  331. attrs: []
  332. $ref:
  333. - "normalize/acl"
  334. - variable: path
  335. label: Host Path
  336. description: The host path to use for storage.
  337. schema:
  338. type: hostpath
  339. show_if: [["acl_enable", "=", false]]
  340. required: true
  341. - variable: auto_permissions
  342. label: Automatic Permissions
  343. description: |
  344. Automatically set permissions for the host path.
  345. Enabling this, will check the top level directory,</br>
  346. If it finds incorrect permissions, it will `chown` the
  347. host path to the user and group required for the
  348. postgres container.
  349. schema:
  350. type: boolean
  351. default: false
  352. show_if: [["acl_enable", "=", false]]
  353. - variable: additional_storage
  354. label: Additional Storage
  355. schema:
  356. type: list
  357. default: []
  358. items:
  359. - variable: storageEntry
  360. label: Storage Entry
  361. schema:
  362. type: dict
  363. attrs:
  364. - variable: type
  365. label: Type
  366. description: |
  367. ixVolume: Is dataset created automatically by the system.</br>
  368. Host Path: Is a path that already exists on the system.</br>
  369. SMB Share: Is a SMB share that is mounted to as a volume.
  370. schema:
  371. type: string
  372. required: true
  373. default: "ix_volume"
  374. enum:
  375. - value: "host_path"
  376. description: Host Path (Path that already exists on the system)
  377. - value: "ix_volume"
  378. description: ixVolume (Dataset created automatically by the system)
  379. - value: "cifs"
  380. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  381. - variable: read_only
  382. label: Read Only
  383. description: Mount the volume as read only.
  384. schema:
  385. type: boolean
  386. default: false
  387. - variable: mount_path
  388. label: Mount Path
  389. description: The path inside the container to mount the storage.
  390. schema:
  391. type: path
  392. required: true
  393. - variable: host_path_config
  394. label: Host Path Configuration
  395. schema:
  396. type: dict
  397. show_if: [["type", "=", "host_path"]]
  398. attrs:
  399. - variable: acl_enable
  400. label: Enable ACL
  401. description: Enable ACL for the storage.
  402. schema:
  403. type: boolean
  404. default: false
  405. - variable: acl
  406. label: ACL Configuration
  407. schema:
  408. type: dict
  409. show_if: [["acl_enable", "=", true]]
  410. attrs: []
  411. $ref:
  412. - "normalize/acl"
  413. - variable: path
  414. label: Host Path
  415. description: The host path to use for storage.
  416. schema:
  417. type: hostpath
  418. show_if: [["acl_enable", "=", false]]
  419. required: true
  420. - variable: ix_volume_config
  421. label: ixVolume Configuration
  422. description: The configuration for the ixVolume dataset.
  423. schema:
  424. type: dict
  425. show_if: [["type", "=", "ix_volume"]]
  426. $ref:
  427. - "normalize/ix_volume"
  428. attrs:
  429. - variable: acl_enable
  430. label: Enable ACL
  431. description: Enable ACL for the storage.
  432. schema:
  433. type: boolean
  434. default: false
  435. - variable: dataset_name
  436. label: Dataset Name
  437. description: The name of the dataset to use for storage.
  438. schema:
  439. type: string
  440. required: true
  441. default: "storage_entry"
  442. - variable: acl_entries
  443. label: ACL Configuration
  444. schema:
  445. type: dict
  446. show_if: [["acl_enable", "=", true]]
  447. attrs: []
  448. $ref:
  449. - "normalize/acl"
  450. - variable: cifs_config
  451. label: SMB Configuration
  452. description: The configuration for the SMB dataset.
  453. schema:
  454. type: dict
  455. show_if: [["type", "=", "cifs"]]
  456. attrs:
  457. - variable: server
  458. label: Server
  459. description: The server to mount the SMB share.
  460. schema:
  461. type: string
  462. required: true
  463. - variable: path
  464. label: Path
  465. description: The path to mount the SMB share.
  466. schema:
  467. type: string
  468. required: true
  469. - variable: username
  470. label: Username
  471. description: The username to use for the SMB share.
  472. schema:
  473. type: string
  474. required: true
  475. - variable: password
  476. label: Password
  477. description: The password to use for the SMB share.
  478. schema:
  479. type: string
  480. required: true
  481. private: true
  482. - variable: domain
  483. label: Domain
  484. description: The domain to use for the SMB share.
  485. schema:
  486. type: string
  487. - variable: labels
  488. label: ""
  489. group: Labels Configuration
  490. schema:
  491. type: list
  492. default: []
  493. items:
  494. - variable: label
  495. label: Label
  496. schema:
  497. type: dict
  498. attrs:
  499. - variable: key
  500. label: Key
  501. schema:
  502. type: string
  503. required: true
  504. - variable: value
  505. label: Value
  506. schema:
  507. type: string
  508. required: true
  509. - variable: containers
  510. label: Containers
  511. description: Containers where the label should be applied
  512. schema:
  513. type: list
  514. items:
  515. - variable: container
  516. label: Container
  517. schema:
  518. type: string
  519. required: true
  520. enum:
  521. - value: vaultwarden
  522. description: vaultwarden
  523. - value: postgres
  524. description: postgres
  525. - variable: resources
  526. label: ""
  527. group: Resources Configuration
  528. schema:
  529. type: dict
  530. attrs:
  531. - variable: limits
  532. label: Limits
  533. schema:
  534. type: dict
  535. attrs:
  536. - variable: cpus
  537. label: CPUs
  538. description: CPUs limit for Vaultwarden.
  539. schema:
  540. type: int
  541. default: 2
  542. required: true
  543. - variable: memory
  544. label: Memory (in MB)
  545. description: Memory limit for Vaultwarden.
  546. schema:
  547. type: int
  548. default: 4096
  549. required: true