questions.yaml 22 KB

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