gyoza.yml Reference#
The gyoza.yml (or gyoza.yaml) file is the project manifest. It
contains everything gyoza needs to build, deploy, and run your op.
All string values support ${ENV_VAR} and ${ENV_VAR:-default}
placeholder substitution — the value is resolved from the environment at
runtime, so secrets never need to be committed to the file.
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Unique human-readable identifier for the op (e.g. |
|
Yes |
— |
Semantic version string (e.g. |
|
Yes |
— |
Full Docker image tag including registry prefix and version
(e.g. |
|
Yes |
— |
Docker build configuration. Passed directly to a generated
|
|
No |
See below |
Hardware requirements for execution. See constraints. |
|
No |
See below |
Failure recovery rules. See retry_policy. |
|
No |
See below |
Event publishing configuration. See event_delivery. |
|
No |
|
Path to the Python file containing the |
|
No |
See below |
Server connection settings for |
build#
Passed as-is to Docker Compose. The most common keys:
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Path to the build context (usually |
|
Yes |
— |
Path to the Dockerfile, relative to the context. |
|
No |
|
Build-time variables injected as Docker |
All other keys supported by the Docker Compose build block are also accepted.
constraints#
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
Number of CPU cores required. |
|
No |
|
RAM in megabytes. |
|
No |
|
GPU VRAM in megabytes. Set to |
retry_policy#
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
Maximum number of execution attempts in case of failure (including the first). |
|
No |
|
Milliseconds to wait between consecutive retry attempts. |
event_delivery#
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
Topic name to publish run-state events to. |
|
No |
|
Key-value metadata attached to every emitted event. |
deploy#
Required only when using gyoza deploy. If omitted, gyoza reads
the server URL and token from the GYOZA_SERVER_URL and
GYOZA_API_KEY environment variables instead.
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Base URL of the gyoza server. |
|
No |
|
API authentication token. |