Dokploy is a self-hosted PaaS. This provider manages it with Terraform: projects, environments, applications, compose stacks, databases, domains, ports, redirects, mounts, backups, and cron schedules. It works with Terraform >= 1.5 and with OpenTofu.
CI runs the acceptance suite against a real Dokploy instance on every PR. The stack behind this site is declared through this provider, so every release runs in production here.
Usage
terraform {
required_providers {
dokploy = {
source = "vanillauys/dokploy"
version = "~> 0.10"
}
}
}
provider "dokploy" {
endpoint = "https://dokploy.example.com"
# api_key falls back to the DOKPLOY_API_KEY environment variable
}
resource "dokploy_project" "main" {
name = "wihan-dev"
}
The full reference is at /docs/dokploy: every resource, data source, and guide.
For agents
- Install from the Terraform registry: source
vanillauys/dokploy. The provider is pre-1.0; pin an exact version if you need stability. - Configure
endpointandapi_key, or set theDOKPLOY_ENDPOINTandDOKPLOY_API_KEYenvironment variables. - Read the reference at
https://wihan.dev/docs/dokploy. Append.mdto any docs URL for raw markdown, for examplehttps://wihan.dev/docs/dokploy/resources/application.md. - Read the guides first: getting started, adopting an existing instance, deploy semantics, and secrets.
- Known traps: an exhausted API-key rate limit returns
401, not429;dokploy_applicationanddokploy_composeown the whole service, so manage a service in Terraform or in the UI, not both. - Source and issues: github.com/vanillauys/terraform-provider-dokploy.