{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"$schema":{"type":"string"},"build":{"type":"object","properties":{"builder":{"anyOf":[{"description":"Set the builder for the deployment","anyOf":[{"type":"string","const":"NIXPACKS","description":"Use the [Nixpacks](https://nixpacks.com) build"},{"type":"string","const":"DOCKERFILE","description":"Force usage of a Dockerfile"},{"type":"string","const":"RAILPACK","description":"**EXPERIMENTAL**. Use the Railpack builder"},{"type":"string","const":"HEROKU","description":"**Deprecated**. Use the Heroku buildpacks"},{"type":"string","const":"PAKETO","description":"**Deprecated**. Use the Paketo buildpacks"}]},{"type":"null"}]},"watchPatterns":{"anyOf":[{"type":"array","items":{"type":"string","description":"Array of patterns used to conditionally trigger a deploys"}},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","description":"Build command to pass to the Nixpacks builder"},{"type":"null"}]},"dockerfilePath":{"anyOf":[{"type":"string","description":"Location of non-standard Dockerfile"},{"type":"null"}]},"nixpacksConfigPath":{"anyOf":[{"type":"string","description":"Location of a non-standard Nixpacks config file"},{"type":"null"}]},"nixpacksPlan":{"anyOf":[{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string"}},"phases":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"dependsOn":{"type":"array","items":{"type":"string"}},"cmds":{"type":"array","items":{"type":"string"}},"nixPkgs":{"type":"array","items":{"type":"string"}},"nixLibs":{"type":"array","items":{"type":"string"}},"aptPkgs":{"type":"array","items":{"type":"string"}},"nixOverlays":{"type":"array","items":{"type":"string"}},"nixPkgsArchive":{"type":"string"},"includedFiles":{"type":"array","items":{"type":"string"}},"cacheDirectories":{"type":"array","items":{"type":"string"}},"paths":{"type":"array","items":{"type":"string"}}},"description":"Single Nixpacks phase"}}},"additionalProperties":{}},{"type":"null"}]},"nixpacksVersion":{"anyOf":[{"type":"string","description":"Version of Nixpacks to use. Must be a valid Nixpacks version."},{"type":"null"}]},"railpackVersion":{"anyOf":[{"type":"string","description":"Version of Railpack to use. Must be a valid Railpack version."},{"type":"null"}]}}},"deploy":{"type":"object","properties":{"startCommand":{"anyOf":[{"type":"string","description":"The command to run when starting the container"},{"type":"null"}]},"preDeployCommand":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"maxItems":1,"type":"array","items":{"type":"string"}}]},{"type":"null"}]},{"type":"null"}]},"preDeployTimeoutSeconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":3600,"description":"Number of seconds to allow the pre-deploy command to run before the deploy is failed"},{"type":"null"}]},"numReplicas":{"anyOf":[{"type":"integer","minimum":1,"maximum":200,"description":"The number of instances to run for the deployment"},{"type":"null"}]},"healthcheckPath":{"anyOf":[{"type":"string","description":"Path to check after starting your deployment to ensure it is healthy"},{"type":"null"}]},"healthcheckTimeout":{"anyOf":[{"type":"number","description":"Number of seconds to wait for the healthcheck path to become healthy"},{"type":"null"}]},"sleepApplication":{"anyOf":[{"type":"boolean","description":"Should application be stopped when inactive"},{"type":"null"}]},"runtime":{"anyOf":[{"description":"Runtime to use for the deployment","type":"string","enum":["UNSPECIFIED","LEGACY","V2"]},{"type":"null"}]},"registryCredentials":{"anyOf":[{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}},{"type":"null"}]},"restartPolicyType":{"anyOf":[{"description":"How to handle the deployment crashing","anyOf":[{"type":"string","const":"ON_FAILURE","description":"Restart on failure up to `restartPolicyMaxRetries`"},{"type":"string","const":"ALWAYS","description":"Always restart on container exit"},{"type":"string","const":"NEVER","description":"Never restart the container"}]},{"type":"null"}]},"restartPolicyMaxRetries":{"anyOf":[{"type":"number","minimum":1},{"type":"null"}]},"cronSchedule":{"anyOf":[{"type":"string","description":"Cron schedule to run the deployment on"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiRegionConfig":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"numReplicas":{"anyOf":[{"type":"integer","minimum":1,"maximum":200,"description":"The number of instances to run for the deployment"},{"type":"null"}]},"stackerAssignment":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$","description":"IP of the stacker to assign the deployment to"},{"type":"string","const":"ALL_STACKERS","description":"Assign to all stackers in the region"}]},{"type":"null"}]}}},{"type":"null"}]},"description":"Multi-region deployment configuration"},{"type":"null"}]},"limitOverride":{"anyOf":[{"type":"object","properties":{"containers":{"anyOf":[{"type":"object","properties":{"cpu":{"anyOf":[{"type":"number","description":"cpus available to the instance"},{"type":"null"}]},"memoryBytes":{"anyOf":[{"type":"number","description":"bytes of RAM available to the instance"},{"type":"null"}]},"diskBytes":{"anyOf":[{"type":"number","description":"bytes of disk available to the instance"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"requiredMountPath":{"anyOf":[{"type":"string","description":"Required mount path for the deployment"},{"type":"null"}]},"overlapSeconds":{"anyOf":[{"type":"number","minimum":0,"description":"Time in seconds that the previous deploy will overlap with the newest one being deployed"},{"type":"null"}]},"drainingSeconds":{"anyOf":[{"type":"number","minimum":0,"description":"The time in seconds between when the previous deploy is sent a SIGTERM to the time it is sent a SIGKILL"},{"type":"null"}]},"ipv6EgressEnabled":{"anyOf":[{"type":"boolean","description":"Enable IPv6 internet access"},{"type":"null"}]}}},"environments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"build":{"type":"object","properties":{"builder":{"anyOf":[{"description":"Set the builder for the deployment","anyOf":[{"type":"string","const":"NIXPACKS","description":"Use the [Nixpacks](https://nixpacks.com) build"},{"type":"string","const":"DOCKERFILE","description":"Force usage of a Dockerfile"},{"type":"string","const":"RAILPACK","description":"**EXPERIMENTAL**. Use the Railpack builder"},{"type":"string","const":"HEROKU","description":"**Deprecated**. Use the Heroku buildpacks"},{"type":"string","const":"PAKETO","description":"**Deprecated**. Use the Paketo buildpacks"}]},{"type":"null"}]},"watchPatterns":{"anyOf":[{"type":"array","items":{"type":"string","description":"Array of patterns used to conditionally trigger a deploys"}},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","description":"Build command to pass to the Nixpacks builder"},{"type":"null"}]},"buildEnvironment":{"anyOf":[{"anyOf":[{"type":"string","const":"V2"},{"type":"string","const":"V3"}],"description":"Build environment to be used for the build process"},{"type":"null"}]},"dockerfilePath":{"anyOf":[{"type":"string","description":"Location of non-standard Dockerfile"},{"type":"null"}]},"nixpacksConfigPath":{"anyOf":[{"type":"string","description":"Location of a non-standard Nixpacks config file"},{"type":"null"}]},"nixpacksPlan":{"anyOf":[{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string"}},"phases":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"dependsOn":{"type":"array","items":{"type":"string"}},"cmds":{"type":"array","items":{"type":"string"}},"nixPkgs":{"type":"array","items":{"type":"string"}},"nixLibs":{"type":"array","items":{"type":"string"}},"aptPkgs":{"type":"array","items":{"type":"string"}},"nixOverlays":{"type":"array","items":{"type":"string"}},"nixPkgsArchive":{"type":"string"},"includedFiles":{"type":"array","items":{"type":"string"}},"cacheDirectories":{"type":"array","items":{"type":"string"}},"paths":{"type":"array","items":{"type":"string"}}},"description":"Single Nixpacks phase"}}},"additionalProperties":{}},{"type":"null"}]},"nixpacksVersion":{"anyOf":[{"type":"string","description":"Version of Nixpacks to use. Must be a valid Nixpacks version."},{"type":"null"}]},"railpackVersion":{"anyOf":[{"type":"string","description":"Version of Railpack to use. Must be a valid Railpack version."},{"type":"null"}]}}},"deploy":{"type":"object","properties":{"startCommand":{"anyOf":[{"type":"string","description":"The command to run when starting the container"},{"type":"null"}]},"preDeployCommand":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"maxItems":1,"type":"array","items":{"type":"string"}}]},{"type":"null"}]},{"type":"null"}]},"preDeployTimeoutSeconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":3600,"description":"Number of seconds to allow the pre-deploy command to run before the deploy is failed"},{"type":"null"}]},"numReplicas":{"anyOf":[{"type":"integer","minimum":1,"maximum":200,"description":"The number of instances to run for the deployment"},{"type":"null"}]},"healthcheckPath":{"anyOf":[{"type":"string","description":"Path to check after starting your deployment to ensure it is healthy"},{"type":"null"}]},"healthcheckTimeout":{"anyOf":[{"type":"number","description":"Number of seconds to wait for the healthcheck path to become healthy"},{"type":"null"}]},"sleepApplication":{"anyOf":[{"type":"boolean","description":"Should application be stopped when inactive"},{"type":"null"}]},"runtime":{"anyOf":[{"description":"Runtime to use for the deployment","type":"string","enum":["UNSPECIFIED","LEGACY","V2"]},{"type":"null"}]},"registryCredentials":{"anyOf":[{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}},{"type":"null"}]},"restartPolicyType":{"anyOf":[{"description":"How to handle the deployment crashing","anyOf":[{"type":"string","const":"ON_FAILURE","description":"Restart on failure up to `restartPolicyMaxRetries`"},{"type":"string","const":"ALWAYS","description":"Always restart on container exit"},{"type":"string","const":"NEVER","description":"Never restart the container"}]},{"type":"null"}]},"restartPolicyMaxRetries":{"anyOf":[{"type":"number","minimum":1},{"type":"null"}]},"cronSchedule":{"anyOf":[{"type":"string","description":"Cron schedule to run the deployment on"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiRegionConfig":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"numReplicas":{"anyOf":[{"type":"integer","minimum":1,"maximum":200,"description":"The number of instances to run for the deployment"},{"type":"null"}]},"stackerAssignment":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$","description":"IP of the stacker to assign the deployment to"},{"type":"string","const":"ALL_STACKERS","description":"Assign to all stackers in the region"}]},{"type":"null"}]}}},{"type":"null"}]},"description":"Multi-region deployment configuration"},{"type":"null"}]},"limitOverride":{"anyOf":[{"type":"object","properties":{"containers":{"anyOf":[{"type":"object","properties":{"cpu":{"anyOf":[{"type":"number","description":"cpus available to the instance"},{"type":"null"}]},"memoryBytes":{"anyOf":[{"type":"number","description":"bytes of RAM available to the instance"},{"type":"null"}]},"diskBytes":{"anyOf":[{"type":"number","description":"bytes of disk available to the instance"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"requiredMountPath":{"anyOf":[{"type":"string","description":"Required mount path for the deployment"},{"type":"null"}]},"overlapSeconds":{"anyOf":[{"type":"number","minimum":0,"description":"Time in seconds that the previous deploy will overlap with the newest one being deployed"},{"type":"null"}]},"drainingSeconds":{"anyOf":[{"type":"number","minimum":0,"description":"The time in seconds between when the previous deploy is sent a SIGTERM to the time it is sent a SIGKILL"},{"type":"null"}]},"useLegacyStacker":{"anyOf":[{"type":"boolean","description":"**Deprecated**. The legacy stacker is no longer supported."},{"type":"null"}]},"ipv6EgressEnabled":{"anyOf":[{"type":"boolean","description":"Enable IPv6 internet access"},{"type":"null"}]}}}}},"description":"Override service manifest for different environments"}}}