Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

redis

Configuration of a managed Redis instance.

The runtime resolves the effective image using the same priority as [crate::PostgresConfig]: image takes precedence; otherwise version is expanded to redis:<version>-alpine.

FieldTypeRequiredDefaultDescription
depends_onarray of stringnoNames of other resources this instance must wait for before starting.
healthcheckHealthchecknoHealthcheck override. Replaces the built-in redis-cli PING check. See [Healthcheck] for field semantics and defaults.
imagestringnoExplicit image reference. Takes precedence over version.
passwordstringnoAuthentication password for the requirepass directive. An empty string or None runs Redis without authentication.
portintegernoHost port the container port 6379 is mapped to. The runtime chooses a random free port when unset.
versionstringnoRedis major version, e.g. "7". Expanded into redis:<version>-alpine when image is absent.
volumeVolumenoPersistent volume configuration. See [Volume] for accepted forms. Defaults to an auto-named volume when unset.