questions.yaml 25 KB

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