version: "1.0" type: component data: name: omv-services-compose-settings-form-page type: formPage config: request: service: Compose get: method: get post: method: set fields: - type: divider title: _("Compose Files") - type: sharedFolderSelect name: sharedfolderref label: _("Shared folder") hasEmptyOption: true hint: _("Location of compose files") - type: container fields: - type: select name: composeowner label: _("Owner of directories and files") placeholder: _("Select a user ...") value: "root" valueField: "name" textField: "name" store: proxy: service: UserMgmt get: method: enumerateAllUsers sorters: - dir: asc prop: name validators: required: true - type: select name: composegroup label: _("Group of directories and files") placeholder: _("Select a group ...") value: "root" valueField: "name" textField: "name" store: proxy: service: UserMgmt get: method: enumerateAllGroups sorters: - dir: asc prop: name validators: required: true - type: select name: mode label: _("Permissions of directories and files") value: "700" store: data: - - "700" - _("Administrator - read/write, Users - no access, Others - no access") - - "750" - _("Administrator - read/write, Users - read-only, Others - no access") - - "770" - _("Administrator - read/write, Users - read/write, Others - no access") - - "755" - _("Administrator - read/write, Users - read-only, Others - read-only") - - "775" - _("Administrator - read/write, Users - read/write, Others - read-only") - - "777" - _("Everyone - read/write") - type: divider title: _("Data") - type: sharedFolderSelect name: datasharedfolderref label: _("Shared folder") hasEmptyOption: true hint: _("Optional - Location of persistent container data
Only used to substitute CHANGE_TO_COMPOSE_DATA_PATH in compose and env files with this shared folder path.") - type: divider title: _("Backup") - type: sharedFolderSelect name: backupsharedfolderref label: _("Shared folder") hasEmptyOption: true hint: _("Location of backups") - type: numberInput name: backupmaxsize label: _("Max Size") value: 1 validators: min: 0 max: 65536 patternType: integer required: true hint: _("Units in GB. Backup will skip volumes larger than this size.
Set to 0 for unlimited.") - type: container fields: - type: select name: backupbackend label: _("Backend") value: "rsync" store: data: - "borg" - "rsync" - type: numberInput name: borgkeep label: _("Borg keep") value: 7 validators: min: 0 max: 999 patternType: integer modifiers: - type: visible constraint: operator: eq arg0: prop: backupbackend arg1: "borg" hint: _("Number of Borg backups to keep.") - type: select name: borgencryption label: _("Borg encryption") value: "none" store: data: - - "none" - _("None") - - "repokey" - _("repokey") modifiers: - type: visible constraint: operator: eq arg0: prop: backupbackend arg1: "borg" hint: _("Encryption mode for Borg repository. Changing this requires re-initializing the repo.") - type: passwordInput name: borgpassphrase label: _("Borg passphrase") value: "" modifiers: - type: visible constraint: operator: and arg0: operator: eq arg0: prop: backupbackend arg1: "borg" arg1: operator: ne arg0: prop: borgencryption arg1: "none" hint: _("Passphrase for Borg encryption.") - type: divider title: _("Docker config") - type: checkbox name: podman label: _("Use podman") value: false - type: container modifiers: - type: visible constraint: operator: falsy arg0: prop: podman fields: - type: checkbox name: dockerusesharedfolder label: _("Use shared folder") hint: _("Select a shared folder to set the Docker storage path. Uncheck to enter a path manually.") value: false submitValue: false modifiers: - type: visible constraint: operator: falsy arg0: prop: podman - type: textInput name: dockerStorage label: _("Docker storage") value: "/var/lib/docker" hint: _("Leave blank to use a custom /etc/docker/daemon.json") modifiers: - type: disabled constraint: operator: truthy arg0: prop: dockerusesharedfolder - type: visible constraint: operator: falsy arg0: prop: podman - type: select name: dockersharedfolderref label: _("Shared folder") hint: _("The absolute path of the selected shared folder will be used as the Docker storage path when saved.") valueField: uuid textField: description hasEmptyOption: true value: "" store: proxy: service: ShareMgmt get: method: enumerateSharedFolders modifiers: - type: disabled constraint: operator: falsy arg0: prop: dockerusesharedfolder - type: visible constraint: operator: falsy arg0: prop: podman - type: numberInput name: logmaxsize label: _("Log file max size") value: 50 validators: min: 0 max: 65536 patternType: integer required: true hint: _("Units in MB. Set to 0 for unlimited.") modifiers: - type: disabled constraint: operator: and arg0: operator: eq arg0: prop: dockerStorage arg1: "" arg1: operator: falsy arg0: prop: dockerusesharedfolder - type: visible constraint: operator: falsy arg0: prop: podman - type: checkbox name: liverestore label: _("Live restore") hint: _("Keep containers running across Docker daemon updates") value: false modifiers: - type: disabled constraint: operator: and arg0: operator: eq arg0: prop: dockerStorage arg1: "" arg1: operator: falsy arg0: prop: dockerusesharedfolder - type: visible constraint: operator: falsy arg0: prop: podman - type: container modifiers: - type: visible constraint: operator: truty arg0: prop: podman fields: - type: checkbox name: podmanusesharedfolder label: _("Use shared folder") hint: _("Select a shared folder to set the Podman storage path. Uncheck to enter a path manually.") value: false submitValue: false modifiers: - type: visible constraint: operator: truthy arg0: prop: podman - type: textInput name: podmanStorage label: _("Podman storage") value: "/var/lib/containers/storage" hint: _("Leave blank to use a custom /etc/containers/storage.conf") modifiers: - type: disabled constraint: operator: truthy arg0: prop: podmanusesharedfolder - type: visible constraint: operator: truthy arg0: prop: podman - type: select name: podmansharedfolderref label: _("Shared folder") hint: _("The absolute path of the selected shared folder will be used as the Podman storage path when saved.") valueField: uuid textField: description hasEmptyOption: true value: "" store: proxy: service: ShareMgmt get: method: enumerateSharedFolders modifiers: - type: disabled constraint: operator: falsy arg0: prop: podmanusesharedfolder - type: visible constraint: operator: truthy arg0: prop: podman - type: numberInput name: dockerdelay label: _("Start delay") value: 0 validators: min: 0 max: 300 patternType: integer required: true hint: _("Seconds to wait before starting Docker/Podman on boot. Use this if containers fail to start because storage is not ready in time.") - type: divider title: _("Docker info") - type: textInput name: dockerStatus label: _("Status") submitValue: false readonly: true - type: textInput name: dockerVersion label: _("Docker version") submitValue: false readonly: true - type: textInput name: composeVersion label: _("Compose version") submitValue: false readonly: true - type: divider title: _("Overrides") - type: textInput name: urlHostname label: _("URL hostname") value: "" hint: _("Override hostname when opening ports in Files, Services, and Containers tabs") - type: checkbox name: showcmd label: _("Show commands") hint: _("Show docker command for task in task dialog") value: false - type: checkbox name: runconfig label: _("Run config") hint: _("Run docker compose config to automatically check syntax when saving file") value: false - type: checkbox name: createsymlinks label: _("Create symlinks") hint: _("Create .env and compose.yml symlinks") value: true - type: divider title: _("Cache times for tabs") - type: container fields: - type: numberInput name: cachetimefiles label: _("Files") value: 60 hint: _("Units in seconds.
Set to 0 for no caching.") validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimeservices label: _("Services") value: 60 validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimestats label: _("Stats") value: 60 validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimeimages label: _("Images") value: 60 validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimenetworks label: _("Networks") value: 60 validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimevolumes label: _("Volumes") value: 60 validators: min: 0 max: 65536 patternType: integer required: true - type: numberInput name: cachetimecontainers label: _("Containers") value: 60 validators: min: 0 max: 65536 patternType: integer required: true buttons: - template: submit execute: type: url url: "/services/compose" - template: cancel execute: type: url url: "/services/compose" - text: _("Enable Docker repo") execute: type: taskDialog taskDialog: config: title: _("Enable Docker repo ...") startOnInit: true request: service: Compose method: enableDockerRepo buttons: stop: hidden: true - text: _("Reinstall Docker") confirmationDialogConfig: template: confirmation-danger message: _("Are you sure you want to reinstall?") execute: type: taskDialog taskDialog: config: title: _("Reinstall Docker ...") startOnInit: true request: service: Compose method: reinstallDocker buttons: stop: hidden: true - text: _("Restart Docker") confirmationDialogConfig: template: confirmation-danger message: _("Are you sure you want to restart?") execute: type: request request: service: Compose method: restartDocker progressMessage: _("Docker is restarting ...") successNotification: _("Docker has been restarted.") - text: _("Clear cache") execute: type: request request: service: Compose method: clearCacheFiles progressMessage: _("Clearing cache ...") successNotification: _("Cache has been cleared.")