wihan/dev

docs /dokploy / data sources

markdown
browse the dokploy docs

dokploy_redis (Data Source)

Look up a Dokploy redis service by id, or by name within an environment. The database password is intentionally not exposed; any other Sensitive credential attribute is exposed but marked Sensitive.

Example Usage

data "dokploy_redis" "example" {
  id = "your-redis-id"
}

# By name, within an environment.
data "dokploy_redis" "by_name" {
  environment_id = data.dokploy_environment.production.id
  name           = "cache"
}

Schema

Optional

  • environment_id (String) Id of the environment to search. Required with name.
  • id (String) Redis service id. Set either this or both environment_id and name.
  • name (String) Exact redis service name, searched within environment_id. Errors when zero or multiple redis services match.

Read-Only

  • app_name (String) Dokploy-internal app name.
  • created_at (String) Creation timestamp.
  • docker_image (String) Docker image.
  • external_port (Number) Exposed host port, if any.
  • status (String) Service status.