questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. groups:
  2. - name: Directus Configuration
  3. description: Configure Directus
  4. - name: Network Configuration
  5. description: Configure Network for Directus
  6. - name: Storage Configuration
  7. description: Configure Storage for Directus
  8. - name: Labels Configuration
  9. description: Configure Labels for Directus
  10. - name: Resources Configuration
  11. description: Configure Resources for Directus
  12. questions:
  13. - variable: TZ
  14. group: Directus Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: "Etc/UTC"
  19. required: true
  20. $ref:
  21. - "definitions/timezone"
  22. - variable: directus
  23. label: ""
  24. group: Directus 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. schema:
  47. type: string
  48. default: ""
  49. required: true
  50. private: true
  51. - variable: redis_password
  52. label: Redis Password
  53. schema:
  54. type: string
  55. default: ""
  56. required: true
  57. private: true
  58. - variable: secret
  59. label: Secret Key
  60. description: |
  61. This should be a secure random value.</br>
  62. Used for generating tokens and encrypting data.
  63. schema:
  64. type: string
  65. required: true
  66. private: true
  67. default: ""
  68. - variable: admin_email
  69. label: Admin Email
  70. description: Email address for the initial admin user.
  71. schema:
  72. type: string
  73. required: true
  74. default: ""
  75. - variable: admin_password
  76. label: Admin Password
  77. description: Password for the initial admin user.
  78. schema:
  79. type: string
  80. required: true
  81. private: true
  82. default: ""
  83. - variable: enable_websocket
  84. label: Enable WebSocket
  85. description: Enable WebSockets for real-time updates.
  86. schema:
  87. type: boolean
  88. default: true
  89. - variable: additional_envs
  90. label: Additional Environment Variables
  91. description: Configure additional environment variables for Directus.
  92. schema:
  93. type: list
  94. default: []
  95. items:
  96. - variable: env
  97. label: Environment Variable
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: name
  102. label: Name
  103. schema:
  104. type: string
  105. required: true
  106. - variable: value
  107. label: Value
  108. schema:
  109. type: string
  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: 30174
  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: storage
  165. label: ""
  166. group: Storage Configuration
  167. schema:
  168. type: dict
  169. attrs:
  170. - variable: extensions
  171. label: Extensions Storage
  172. schema:
  173. type: dict
  174. attrs:
  175. - variable: type
  176. label: Type
  177. description: |
  178. ixVolume: Is dataset created automatically by the system.</br>
  179. Host Path: Is a path that already exists on the system.
  180. schema:
  181. type: string
  182. required: true
  183. default: "ix_volume"
  184. enum:
  185. - value: "host_path"
  186. description: Host Path (Path that already exists on the system)
  187. - value: "ix_volume"
  188. description: ixVolume (Dataset created automatically by the system)
  189. - variable: ix_volume_config
  190. label: ixVolume Configuration
  191. description: The configuration for the ixVolume dataset.
  192. schema:
  193. type: dict
  194. show_if: [["type", "=", "ix_volume"]]
  195. $ref:
  196. - "normalize/ix_volume"
  197. attrs:
  198. - variable: acl_enable
  199. label: Enable ACL
  200. description: Enable ACL for the storage.
  201. schema:
  202. type: boolean
  203. default: false
  204. - variable: dataset_name
  205. label: Dataset Name
  206. description: The name of the dataset to use for storage.
  207. schema:
  208. type: string
  209. required: true
  210. hidden: true
  211. default: "extensions"
  212. - variable: acl_entries
  213. label: ACL Configuration
  214. schema:
  215. type: dict
  216. show_if: [["acl_enable", "=", true]]
  217. attrs: []
  218. - variable: host_path_config
  219. label: Host Path Configuration
  220. schema:
  221. type: dict
  222. show_if: [["type", "=", "host_path"]]
  223. attrs:
  224. - variable: acl_enable
  225. label: Enable ACL
  226. description: Enable ACL for the storage.
  227. schema:
  228. type: boolean
  229. default: false
  230. - variable: acl
  231. label: ACL Configuration
  232. schema:
  233. type: dict
  234. show_if: [["acl_enable", "=", true]]
  235. attrs: []
  236. $ref:
  237. - "normalize/acl"
  238. - variable: path
  239. label: Host Path
  240. description: The host path to use for storage.
  241. schema:
  242. type: hostpath
  243. show_if: [["acl_enable", "=", false]]
  244. required: true
  245. - variable: uploads
  246. label: Uploads Storage
  247. schema:
  248. type: dict
  249. attrs:
  250. - variable: type
  251. label: Type
  252. description: |
  253. ixVolume: Is dataset created automatically by the system.</br>
  254. Host Path: Is a path that already exists on the system.
  255. schema:
  256. type: string
  257. required: true
  258. default: "ix_volume"
  259. enum:
  260. - value: "host_path"
  261. description: Host Path (Path that already exists on the system)
  262. - value: "ix_volume"
  263. description: ixVolume (Dataset created automatically by the system)
  264. - variable: ix_volume_config
  265. label: ixVolume Configuration
  266. description: The configuration for the ixVolume dataset.
  267. schema:
  268. type: dict
  269. show_if: [["type", "=", "ix_volume"]]
  270. $ref:
  271. - "normalize/ix_volume"
  272. attrs:
  273. - variable: acl_enable
  274. label: Enable ACL
  275. description: Enable ACL for the storage.
  276. schema:
  277. type: boolean
  278. default: false
  279. - variable: dataset_name
  280. label: Dataset Name
  281. description: The name of the dataset to use for storage.
  282. schema:
  283. type: string
  284. required: true
  285. hidden: true
  286. default: "uploads"
  287. - variable: acl_entries
  288. label: ACL Configuration
  289. schema:
  290. type: dict
  291. show_if: [["acl_enable", "=", true]]
  292. attrs: []
  293. - variable: host_path_config
  294. label: Host Path Configuration
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "host_path"]]
  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: acl
  306. label: ACL Configuration
  307. schema:
  308. type: dict
  309. show_if: [["acl_enable", "=", true]]
  310. attrs: []
  311. $ref:
  312. - "normalize/acl"
  313. - variable: path
  314. label: Host Path
  315. description: The host path to use for storage.
  316. schema:
  317. type: hostpath
  318. show_if: [["acl_enable", "=", false]]
  319. required: true
  320. - variable: postgres_data
  321. label: Postgres Data Storage
  322. description: The path to store Postgres Data.
  323. schema:
  324. type: dict
  325. attrs:
  326. - variable: type
  327. label: Type
  328. description: |
  329. ixVolume: Is dataset created automatically by the system.</br>
  330. Host Path: Is a path that already exists on the system.
  331. schema:
  332. type: string
  333. required: true
  334. default: "ix_volume"
  335. enum:
  336. - value: "host_path"
  337. description: Host Path (Path that already exists on the system)
  338. - value: "ix_volume"
  339. description: ixVolume (Dataset created automatically by the system)
  340. - variable: ix_volume_config
  341. label: ixVolume Configuration
  342. description: The configuration for the ixVolume dataset.
  343. schema:
  344. type: dict
  345. show_if: [["type", "=", "ix_volume"]]
  346. $ref:
  347. - "normalize/ix_volume"
  348. attrs:
  349. - variable: acl_enable
  350. label: Enable ACL
  351. description: Enable ACL for the storage.
  352. schema:
  353. type: boolean
  354. default: false
  355. - variable: dataset_name
  356. label: Dataset Name
  357. description: The name of the dataset to use for storage.
  358. schema:
  359. type: string
  360. required: true
  361. hidden: true
  362. default: "pg_data"
  363. - variable: acl_entries
  364. label: ACL Configuration
  365. schema:
  366. type: dict
  367. show_if: [["acl_enable", "=", true]]
  368. attrs: []
  369. - variable: host_path_config
  370. label: Host Path Configuration
  371. schema:
  372. type: dict
  373. show_if: [["type", "=", "host_path"]]
  374. attrs:
  375. - variable: acl_enable
  376. label: Enable ACL
  377. description: Enable ACL for the storage.
  378. schema:
  379. type: boolean
  380. default: false
  381. - variable: acl
  382. label: ACL Configuration
  383. schema:
  384. type: dict
  385. show_if: [["acl_enable", "=", true]]
  386. attrs: []
  387. $ref:
  388. - "normalize/acl"
  389. - variable: path
  390. label: Host Path
  391. description: The host path to use for storage.
  392. schema:
  393. type: hostpath
  394. show_if: [["acl_enable", "=", false]]
  395. required: true
  396. - variable: auto_permissions
  397. label: Automatic Permissions
  398. description: |
  399. Automatically set permissions for the host path.
  400. Enabling this, will check the top level directory,</br>
  401. If it finds incorrect permissions, it will `chown` the
  402. host path to the user and group required for the
  403. postgres container.
  404. schema:
  405. type: boolean
  406. default: false
  407. show_if: [["acl_enable", "=", false]]
  408. - variable: additional_storage
  409. label: Additional Storage
  410. schema:
  411. type: list
  412. default: []
  413. items:
  414. - variable: storageEntry
  415. label: Storage Entry
  416. schema:
  417. type: dict
  418. attrs:
  419. - variable: type
  420. label: Type
  421. description: |
  422. ixVolume: Is dataset created automatically by the system.</br>
  423. Host Path: Is a path that already exists on the system.</br>
  424. SMB Share: Is a SMB share that is mounted to as a volume.
  425. schema:
  426. type: string
  427. required: true
  428. default: "ix_volume"
  429. enum:
  430. - value: "host_path"
  431. description: Host Path (Path that already exists on the system)
  432. - value: "ix_volume"
  433. description: ixVolume (Dataset created automatically by the system)
  434. - value: "cifs"
  435. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  436. - variable: read_only
  437. label: Read Only
  438. description: Mount the volume as read only.
  439. schema:
  440. type: boolean
  441. default: false
  442. - variable: mount_path
  443. label: Mount Path
  444. description: The path inside the container to mount the storage.
  445. schema:
  446. type: path
  447. required: true
  448. - variable: host_path_config
  449. label: Host Path Configuration
  450. schema:
  451. type: dict
  452. show_if: [["type", "=", "host_path"]]
  453. attrs:
  454. - variable: acl_enable
  455. label: Enable ACL
  456. description: Enable ACL for the storage.
  457. schema:
  458. type: boolean
  459. default: false
  460. - variable: acl
  461. label: ACL Configuration
  462. schema:
  463. type: dict
  464. show_if: [["acl_enable", "=", true]]
  465. attrs: []
  466. $ref:
  467. - "normalize/acl"
  468. - variable: path
  469. label: Host Path
  470. description: The host path to use for storage.
  471. schema:
  472. type: hostpath
  473. show_if: [["acl_enable", "=", false]]
  474. required: true
  475. - variable: ix_volume_config
  476. label: ixVolume Configuration
  477. description: The configuration for the ixVolume dataset.
  478. schema:
  479. type: dict
  480. show_if: [["type", "=", "ix_volume"]]
  481. $ref:
  482. - "normalize/ix_volume"
  483. attrs:
  484. - variable: acl_enable
  485. label: Enable ACL
  486. description: Enable ACL for the storage.
  487. schema:
  488. type: boolean
  489. default: false
  490. - variable: dataset_name
  491. label: Dataset Name
  492. description: The name of the dataset to use for storage.
  493. schema:
  494. type: string
  495. required: true
  496. default: "storage_entry"
  497. - variable: acl_entries
  498. label: ACL Configuration
  499. schema:
  500. type: dict
  501. show_if: [["acl_enable", "=", true]]
  502. attrs: []
  503. $ref:
  504. - "normalize/acl"
  505. - variable: cifs_config
  506. label: SMB Configuration
  507. description: The configuration for the SMB dataset.
  508. schema:
  509. type: dict
  510. show_if: [["type", "=", "cifs"]]
  511. attrs:
  512. - variable: server
  513. label: Server
  514. description: The server to mount the SMB share.
  515. schema:
  516. type: string
  517. required: true
  518. - variable: path
  519. label: Path
  520. description: The path to mount the SMB share.
  521. schema:
  522. type: string
  523. required: true
  524. - variable: username
  525. label: Username
  526. description: The username to use for the SMB share.
  527. schema:
  528. type: string
  529. required: true
  530. - variable: password
  531. label: Password
  532. description: The password to use for the SMB share.
  533. schema:
  534. type: string
  535. required: true
  536. private: true
  537. - variable: domain
  538. label: Domain
  539. description: The domain to use for the SMB share.
  540. schema:
  541. type: string
  542. - variable: labels
  543. label: ""
  544. group: Labels Configuration
  545. schema:
  546. type: list
  547. default: []
  548. items:
  549. - variable: label
  550. label: Label
  551. schema:
  552. type: dict
  553. attrs:
  554. - variable: key
  555. label: Key
  556. schema:
  557. type: string
  558. required: true
  559. - variable: value
  560. label: Value
  561. schema:
  562. type: string
  563. required: true
  564. - variable: containers
  565. label: Containers
  566. description: Containers where the label should be applied
  567. schema:
  568. type: list
  569. items:
  570. - variable: container
  571. label: Container
  572. schema:
  573. type: string
  574. required: true
  575. enum:
  576. - value: directus
  577. description: directus
  578. - value: postgres
  579. description: postgres
  580. - value: redis
  581. description: redis
  582. - variable: resources
  583. label: ""
  584. group: Resources Configuration
  585. schema:
  586. type: dict
  587. attrs:
  588. - variable: limits
  589. label: Limits
  590. schema:
  591. type: dict
  592. attrs:
  593. - variable: cpus
  594. label: CPUs
  595. description: CPUs limit for Directus.
  596. schema:
  597. type: int
  598. default: 2
  599. required: true
  600. - variable: memory
  601. label: Memory (in MB)
  602. description: Memory limit for Directus.
  603. schema:
  604. type: int
  605. default: 4096
  606. required: true