skip to content
wihan.dev
view as markdown
browse the dokploy docs

dokploy_redis (Data Source)

Look up a Dokploy redis service by id, or by name within an environment. The data source does not expose the database password. It exposes each other credential attribute as sensitive.

Example Usage

terraform
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 this attribute, or set both environment_id and name.
  • name (String) Exact redis service name. The lookup searches within environment_id and errors when zero or many redis services match.

Read-Only

  • app_name (String) Internal Dokploy app name.
  • args (List of String) Arguments for the container command, if any.
  • command (String) Container command override, if any.
  • cpu_limit (String) Hard CPU limit in nano-CPUs, if any.
  • cpu_reservation (String) Reserved CPU in nano-CPUs, if any.
  • created_at (String) Creation timestamp.
  • docker_image (String) Docker image.
  • external_port (Number) Exposed host port, if any.
  • memory_limit (String) Hard memory limit in bytes, if any.
  • memory_reservation (String) Reserved memory in bytes, if any.
  • replicas (Number) Number of container replicas.
  • status (String) Service status.