wihan/dev

projects / detail

terraform-provider-dokploy

github ↗

Dokploy is a self-hosted PaaS. This provider exists because I wanted terraform apply to be the only deploy button, and the alternatives were abandoned repos with open issues from 2023.

It covers the full path from project to running service: projects, environments, applications, compose stacks, domains, certificates, and volume backups. CI runs the acceptance suite against a real Dokploy instance on every PR, because mocking a deployment platform tells you nothing about deploying.

Usage

terraform {
  required_providers {
    dokploy = {
      source  = "vanillauys/dokploy"
      version = "~> 0.10"
    }
  }
}

provider "dokploy" {
  endpoint = var.dokploy_endpoint
  api_key  = var.dokploy_api_key
}

resource "dokploy_project" "main" {
  name = "wihan-dev"
}

This site runs on it. The wihan-dev-tf repo declares the whole stack through this provider, which makes every release a production test.