questions.yaml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. groups:
  2. - name: Invoice Ninja Configuration
  3. description: Configure Invoice Ninja
  4. - name: Network Configuration
  5. description: Configure Network for Invoice Ninja
  6. - name: Storage Configuration
  7. description: Configure Storage for Invoice Ninja
  8. - name: Labels Configuration
  9. description: Configure Labels for Invoice Ninja
  10. - name: Resources Configuration
  11. description: Configure Resources for Invoice Ninja
  12. questions:
  13. - variable: invoice_ninja
  14. label: ""
  15. group: Invoice Ninja Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: db_password
  20. label: Database Password
  21. description: The password for Invoice Ninja.
  22. schema:
  23. type: string
  24. default: ""
  25. required: true
  26. private: true
  27. - variable: db_root_password
  28. label: Database Root Password
  29. description: The root password for Invoice Ninja.
  30. schema:
  31. type: string
  32. default: ""
  33. required: true
  34. private: true
  35. - variable: redis_password
  36. label: Redis Password
  37. description: The password for Invoice Ninja.
  38. schema:
  39. type: string
  40. default: ""
  41. required: true
  42. private: true
  43. - variable: app_key
  44. label: App Key
  45. description: |
  46. The app key for Invoice Ninja.</br>
  47. Must be exactly 32 characters long.</br>
  48. schema:
  49. type: string
  50. min_length: 32
  51. max_length: 32
  52. default: ""
  53. required: true
  54. private: true
  55. - variable: app_url
  56. label: App URL
  57. description: |
  58. The base URL for Invoice Ninja.</br>
  59. Examples:</br>
  60. https://firefly.example.com </br>
  61. http://192.168.1.100:30064
  62. schema:
  63. type: uri
  64. default: ""
  65. - variable: initial_user_email
  66. label: Initial User Email
  67. description: The initial user email for Invoice Ninja.
  68. schema:
  69. type: string
  70. default: ""
  71. required: true
  72. - variable: initial_user_password
  73. label: Initial User Password
  74. description: The initial user password for Invoice Ninja.
  75. schema:
  76. type: string
  77. default: ""
  78. private: true
  79. required: true
  80. - variable: additional_envs
  81. label: Additional Environment Variables
  82. schema:
  83. type: list
  84. default: []
  85. items:
  86. - variable: env
  87. label: Environment Variable
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: name
  92. label: Name
  93. schema:
  94. type: string
  95. required: true
  96. - variable: value
  97. label: Value
  98. schema:
  99. type: string
  100. - variable: network
  101. label: ""
  102. group: Network Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: web_port
  107. label: WebUI Port
  108. schema:
  109. type: dict
  110. attrs:
  111. - variable: bind_mode
  112. label: Port Bind Mode
  113. description: |
  114. The port bind mode.</br>
  115. - Publish: The port will be published on the host for external access.</br>
  116. - Expose: The port will be exposed for inter-container communication.</br>
  117. - None: The port will not be exposed or published.</br>
  118. Note: If the Dockerfile defines an EXPOSE directive,
  119. the port will still be exposed for inter-container communication regardless of this setting.
  120. schema:
  121. type: string
  122. default: "published"
  123. enum:
  124. - value: "published"
  125. description: Publish port on the host for external access
  126. - value: "exposed"
  127. description: Expose port for inter-container communication
  128. - value: ""
  129. description: None
  130. - variable: port_number
  131. label: Port Number
  132. schema:
  133. type: int
  134. default: 31105
  135. min: 1
  136. max: 65535
  137. required: true
  138. - variable: host_ips
  139. label: Host IPs
  140. description: IPs on the host to bind this port
  141. schema:
  142. type: list
  143. show_if: [["bind_mode", "=", "published"]]
  144. default: []
  145. items:
  146. - variable: host_ip
  147. label: Host IP
  148. schema:
  149. type: string
  150. required: true
  151. $ref:
  152. - definitions/node_bind_ip
  153. - variable: storage
  154. label: ""
  155. group: Storage Configuration
  156. schema:
  157. type: dict
  158. attrs:
  159. - variable: storage
  160. label: Invoice Ninja Storage
  161. description: The path to store Invoice Ninja Storage.
  162. schema:
  163. type: dict
  164. attrs:
  165. - variable: type
  166. label: Type
  167. description: |
  168. ixVolume: Is dataset created automatically by the system.</br>
  169. Host Path: Is a path that already exists on the system.
  170. schema:
  171. type: string
  172. required: true
  173. default: "ix_volume"
  174. enum:
  175. - value: "host_path"
  176. description: Host Path (Path that already exists on the system)
  177. - value: "ix_volume"
  178. description: ixVolume (Dataset created automatically by the system)
  179. - variable: ix_volume_config
  180. label: ixVolume Configuration
  181. description: The configuration for the ixVolume dataset.
  182. schema:
  183. type: dict
  184. show_if: [["type", "=", "ix_volume"]]
  185. $ref:
  186. - "normalize/ix_volume"
  187. attrs:
  188. - variable: acl_enable
  189. label: Enable ACL
  190. description: Enable ACL for the storage.
  191. schema:
  192. type: boolean
  193. default: false
  194. - variable: dataset_name
  195. label: Dataset Name
  196. description: The name of the dataset to use for storage.
  197. schema:
  198. type: string
  199. required: true
  200. hidden: true
  201. default: "storage"
  202. - variable: acl_entries
  203. label: ACL Configuration
  204. schema:
  205. type: dict
  206. show_if: [["acl_enable", "=", true]]
  207. attrs: []
  208. - variable: host_path_config
  209. label: Host Path Configuration
  210. schema:
  211. type: dict
  212. show_if: [["type", "=", "host_path"]]
  213. attrs:
  214. - variable: acl_enable
  215. label: Enable ACL
  216. description: Enable ACL for the storage.
  217. schema:
  218. type: boolean
  219. default: false
  220. - variable: acl
  221. label: ACL Configuration
  222. schema:
  223. type: dict
  224. show_if: [["acl_enable", "=", true]]
  225. attrs: []
  226. $ref:
  227. - "normalize/acl"
  228. - variable: path
  229. label: Host Path
  230. description: The host path to use for storage.
  231. schema:
  232. type: hostpath
  233. show_if: [["acl_enable", "=", false]]
  234. required: true
  235. - variable: mariadb_data
  236. label: Invoice Ninja MariaDB Data Storage
  237. description: The path to store Invoice Ninja MariaDB Data.
  238. schema:
  239. type: dict
  240. attrs:
  241. - variable: type
  242. label: Type
  243. description: |
  244. ixVolume: Is dataset created automatically by the system.</br>
  245. Host Path: Is a path that already exists on the system.
  246. schema:
  247. type: string
  248. required: true
  249. default: "ix_volume"
  250. enum:
  251. - value: "host_path"
  252. description: Host Path (Path that already exists on the system)
  253. - value: "ix_volume"
  254. description: ixVolume (Dataset created automatically by the system)
  255. - variable: ix_volume_config
  256. label: ixVolume Configuration
  257. description: The configuration for the ixVolume dataset.
  258. schema:
  259. type: dict
  260. show_if: [["type", "=", "ix_volume"]]
  261. $ref:
  262. - "normalize/ix_volume"
  263. attrs:
  264. - variable: acl_enable
  265. label: Enable ACL
  266. description: Enable ACL for the storage.
  267. schema:
  268. type: boolean
  269. default: false
  270. - variable: dataset_name
  271. label: Dataset Name
  272. description: The name of the dataset to use for storage.
  273. schema:
  274. type: string
  275. required: true
  276. hidden: true
  277. default: "mariadb_data"
  278. - variable: acl_entries
  279. label: ACL Configuration
  280. schema:
  281. type: dict
  282. show_if: [["acl_enable", "=", true]]
  283. attrs: []
  284. - variable: host_path_config
  285. label: Host Path Configuration
  286. schema:
  287. type: dict
  288. show_if: [["type", "=", "host_path"]]
  289. attrs:
  290. - variable: acl_enable
  291. label: Enable ACL
  292. description: Enable ACL for the storage.
  293. schema:
  294. type: boolean
  295. default: false
  296. - variable: acl
  297. label: ACL Configuration
  298. schema:
  299. type: dict
  300. show_if: [["acl_enable", "=", true]]
  301. attrs: []
  302. $ref:
  303. - "normalize/acl"
  304. - variable: path
  305. label: Host Path
  306. description: The host path to use for storage.
  307. schema:
  308. type: hostpath
  309. show_if: [["acl_enable", "=", false]]
  310. required: true
  311. - variable: additional_storage
  312. label: Additional Storage
  313. schema:
  314. type: list
  315. default: []
  316. items:
  317. - variable: storageEntry
  318. label: Storage Entry
  319. schema:
  320. type: dict
  321. attrs:
  322. - variable: type
  323. label: Type
  324. description: |
  325. ixVolume: Is dataset created automatically by the system.</br>
  326. Host Path: Is a path that already exists on the system.</br>
  327. SMB Share: Is a SMB share that is mounted to as a volume.
  328. schema:
  329. type: string
  330. required: true
  331. default: "ix_volume"
  332. enum:
  333. - value: "host_path"
  334. description: Host Path (Path that already exists on the system)
  335. - value: "ix_volume"
  336. description: ixVolume (Dataset created automatically by the system)
  337. - value: "cifs"
  338. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  339. - variable: read_only
  340. label: Read Only
  341. description: Mount the volume as read only.
  342. schema:
  343. type: boolean
  344. default: false
  345. - variable: mount_path
  346. label: Mount Path
  347. description: The path inside the container to mount the storage.
  348. schema:
  349. type: path
  350. required: true
  351. - variable: host_path_config
  352. label: Host Path Configuration
  353. schema:
  354. type: dict
  355. show_if: [["type", "=", "host_path"]]
  356. attrs:
  357. - variable: acl_enable
  358. label: Enable ACL
  359. description: Enable ACL for the storage.
  360. schema:
  361. type: boolean
  362. default: false
  363. - variable: acl
  364. label: ACL Configuration
  365. schema:
  366. type: dict
  367. show_if: [["acl_enable", "=", true]]
  368. attrs: []
  369. $ref:
  370. - "normalize/acl"
  371. - variable: path
  372. label: Host Path
  373. description: The host path to use for storage.
  374. schema:
  375. type: hostpath
  376. show_if: [["acl_enable", "=", false]]
  377. required: true
  378. - variable: ix_volume_config
  379. label: ixVolume Configuration
  380. description: The configuration for the ixVolume dataset.
  381. schema:
  382. type: dict
  383. show_if: [["type", "=", "ix_volume"]]
  384. $ref:
  385. - "normalize/ix_volume"
  386. attrs:
  387. - variable: acl_enable
  388. label: Enable ACL
  389. description: Enable ACL for the storage.
  390. schema:
  391. type: boolean
  392. default: false
  393. - variable: dataset_name
  394. label: Dataset Name
  395. description: The name of the dataset to use for storage.
  396. schema:
  397. type: string
  398. required: true
  399. default: "storage_entry"
  400. - variable: acl_entries
  401. label: ACL Configuration
  402. schema:
  403. type: dict
  404. show_if: [["acl_enable", "=", true]]
  405. attrs: []
  406. $ref:
  407. - "normalize/acl"
  408. - variable: cifs_config
  409. label: SMB Configuration
  410. description: The configuration for the SMB dataset.
  411. schema:
  412. type: dict
  413. show_if: [["type", "=", "cifs"]]
  414. attrs:
  415. - variable: server
  416. label: Server
  417. description: The server to mount the SMB share.
  418. schema:
  419. type: string
  420. required: true
  421. - variable: path
  422. label: Path
  423. description: The path to mount the SMB share.
  424. schema:
  425. type: string
  426. required: true
  427. - variable: username
  428. label: Username
  429. description: The username to use for the SMB share.
  430. schema:
  431. type: string
  432. required: true
  433. - variable: password
  434. label: Password
  435. description: The password to use for the SMB share.
  436. schema:
  437. type: string
  438. required: true
  439. private: true
  440. - variable: domain
  441. label: Domain
  442. description: The domain to use for the SMB share.
  443. schema:
  444. type: string
  445. - variable: labels
  446. label: ""
  447. group: Labels Configuration
  448. schema:
  449. type: list
  450. default: []
  451. items:
  452. - variable: label
  453. label: Label
  454. schema:
  455. type: dict
  456. attrs:
  457. - variable: key
  458. label: Key
  459. schema:
  460. type: string
  461. required: true
  462. - variable: value
  463. label: Value
  464. schema:
  465. type: string
  466. required: true
  467. - variable: containers
  468. label: Containers
  469. description: Containers where the label should be applied
  470. schema:
  471. type: list
  472. items:
  473. - variable: container
  474. label: Container
  475. schema:
  476. type: string
  477. required: true
  478. enum:
  479. - value: invoice-ninja
  480. description: invoice-ninja
  481. - value: worker
  482. description: worker
  483. - value: scheduler
  484. description: scheduler
  485. - value: mariadb
  486. description: mariadb
  487. - value: redis
  488. description: redis
  489. - variable: resources
  490. label: ""
  491. group: Resources Configuration
  492. schema:
  493. type: dict
  494. attrs:
  495. - variable: limits
  496. label: Limits
  497. schema:
  498. type: dict
  499. attrs:
  500. - variable: cpus
  501. label: CPUs
  502. description: CPUs limit for Invoice Ninja.
  503. schema:
  504. type: int
  505. default: 2
  506. required: true
  507. - variable: memory
  508. label: Memory (in MB)
  509. description: Memory limit for Invoice Ninja.
  510. schema:
  511. type: int
  512. default: 4096
  513. required: true