Bridge what Dokploy v0.30 added, and let the docs through
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped

Six new resources from terraform-provider-dokploy v0.2.0 -- Network,
DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new
properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`,
`icon`) and Application. Verified with `pulumi up` against a live v0.30.2
instance: create, preview-clean, and destroy.

The upstream provider also now refuses a volume Mount with no `volumeName`,
which Dokploy would otherwise turn into an anonymous Docker volume recreated
on every deploy. That surfaces here at preview time, before anything exists.

Two things made that fix nearly invisible to Pulumi users, so this commit
fixes the second one: the bridge resolves the upstream `docs/` through the Go
module cache, where a locally `replace`d dependency never lands, so tfgen was
emitting every resource with no description at all. UpstreamRepoPath now
points at the checkout and all 445 inputs carry documentation -- with names
rendered per language, so Python readers see `volume_name` where TypeScript
readers see `volumeName`.
This commit is contained in:
max-voitcov
2026-08-26 00:46:32 +03:00
parent ad3e908c98
commit 73386ba0ff
137 changed files with 19660 additions and 5183 deletions
+134 -85
View File
@@ -4,6 +4,13 @@
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* A Docker Compose or Docker Swarm stack managed by Dokploy.
*
* Set `composeFile` to manage the stack definition inline (with `sourceType = "raw"`), or point the stack at a Git repository and set `composePath`.
*
* > Creating this resource does **not** deploy the stack.
*/
export class Compose extends pulumi.CustomResource {
/**
* Get an existing Compose resource's state with the given name, ID, and optional extra
@@ -84,6 +91,10 @@ export class Compose extends pulumi.CustomResource {
* Whether to run the stack with Docker Compose or Docker Swarm. Valid values: `docker-compose`, `stack`.
*/
declare public readonly composeType: pulumi.Output<string>;
/**
* Write the environment variables to a `.env` file next to the Compose file.
*/
declare public readonly createEnvFile: pulumi.Output<boolean>;
/**
* RFC 3339 timestamp of when the stack was created.
*/
@@ -164,6 +175,10 @@ export class Compose extends pulumi.CustomResource {
* GitLab repository name.
*/
declare public readonly gitlabRepository: pulumi.Output<string | undefined>;
/**
* Icon shown next to the stack in the Dokploy UI.
*/
declare public readonly icon: pulumi.Output<string | undefined>;
/**
* Run the stack on its own isolated Docker network.
*/
@@ -192,6 +207,10 @@ export class Compose extends pulumi.CustomResource {
* Remote server to deploy on. Omit to use the Dokploy host itself.
*/
declare public readonly serverId: pulumi.Output<string | undefined>;
/**
* Per-service Docker network attachments, as a JSON object mapping each service name in the stack to an array of network IDs.
*/
declare public readonly serviceNetworks: pulumi.Output<string | undefined>;
/**
* Where the Compose file comes from. Valid values: `git`, `github`, `gitlab`, `bitbucket`, `gitea`, `raw`.
*/
@@ -235,6 +254,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["composePath"] = state?.composePath;
resourceInputs["composeStatus"] = state?.composeStatus;
resourceInputs["composeType"] = state?.composeType;
resourceInputs["createEnvFile"] = state?.createEnvFile;
resourceInputs["createdAt"] = state?.createdAt;
resourceInputs["customGitBranch"] = state?.customGitBranch;
resourceInputs["customGitSshKeyId"] = state?.customGitSshKeyId;
@@ -255,6 +275,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["gitlabPathNamespace"] = state?.gitlabPathNamespace;
resourceInputs["gitlabProjectId"] = state?.gitlabProjectId;
resourceInputs["gitlabRepository"] = state?.gitlabRepository;
resourceInputs["icon"] = state?.icon;
resourceInputs["isolatedDeployment"] = state?.isolatedDeployment;
resourceInputs["isolatedDeploymentsVolume"] = state?.isolatedDeploymentsVolume;
resourceInputs["name"] = state?.name;
@@ -262,6 +283,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["randomize"] = state?.randomize;
resourceInputs["repository"] = state?.repository;
resourceInputs["serverId"] = state?.serverId;
resourceInputs["serviceNetworks"] = state?.serviceNetworks;
resourceInputs["sourceType"] = state?.sourceType;
resourceInputs["suffix"] = state?.suffix;
resourceInputs["triggerType"] = state?.triggerType;
@@ -283,6 +305,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["composeFile"] = args?.composeFile;
resourceInputs["composePath"] = args?.composePath;
resourceInputs["composeType"] = args?.composeType;
resourceInputs["createEnvFile"] = args?.createEnvFile;
resourceInputs["customGitBranch"] = args?.customGitBranch;
resourceInputs["customGitSshKeyId"] = args?.customGitSshKeyId;
resourceInputs["customGitUrl"] = args?.customGitUrl;
@@ -302,6 +325,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["gitlabPathNamespace"] = args?.gitlabPathNamespace;
resourceInputs["gitlabProjectId"] = args?.gitlabProjectId;
resourceInputs["gitlabRepository"] = args?.gitlabRepository;
resourceInputs["icon"] = args?.icon;
resourceInputs["isolatedDeployment"] = args?.isolatedDeployment;
resourceInputs["isolatedDeploymentsVolume"] = args?.isolatedDeploymentsVolume;
resourceInputs["name"] = args?.name;
@@ -309,6 +333,7 @@ export class Compose extends pulumi.CustomResource {
resourceInputs["randomize"] = args?.randomize;
resourceInputs["repository"] = args?.repository;
resourceInputs["serverId"] = args?.serverId;
resourceInputs["serviceNetworks"] = args?.serviceNetworks;
resourceInputs["sourceType"] = args?.sourceType;
resourceInputs["suffix"] = args?.suffix;
resourceInputs["triggerType"] = args?.triggerType;
@@ -328,179 +353,191 @@ export interface ComposeState {
/**
* Unique Docker stack name. Generated by Dokploy when omitted. Changing it forces a new stack.
*/
appName?: pulumi.Input<string>;
appName?: pulumi.Input<string | undefined>;
/**
* Deploy automatically when the configured trigger fires.
*/
autoDeploy?: pulumi.Input<boolean>;
autoDeploy?: pulumi.Input<boolean | undefined>;
/**
* Bitbucket branch to deploy.
*/
bitbucketBranch?: pulumi.Input<string>;
bitbucketBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured Bitbucket provider connection.
*/
bitbucketId?: pulumi.Input<string>;
bitbucketId?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository owner.
*/
bitbucketOwner?: pulumi.Input<string>;
bitbucketOwner?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository name.
*/
bitbucketRepository?: pulumi.Input<string>;
bitbucketRepository?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository slug.
*/
bitbucketRepositorySlug?: pulumi.Input<string>;
bitbucketRepositorySlug?: pulumi.Input<string | undefined>;
/**
* GitHub branch to deploy.
*/
branch?: pulumi.Input<string>;
branch?: pulumi.Input<string | undefined>;
/**
* Custom `docker compose` command to run.
*/
command?: pulumi.Input<string>;
command?: pulumi.Input<string | undefined>;
/**
* Inline Compose file contents. Used when `sourceType` is `raw`.
*/
composeFile?: pulumi.Input<string>;
composeFile?: pulumi.Input<string | undefined>;
/**
* Path to the Compose file within the repository.
*/
composePath?: pulumi.Input<string>;
composePath?: pulumi.Input<string | undefined>;
/**
* Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
*/
composeStatus?: pulumi.Input<string>;
composeStatus?: pulumi.Input<string | undefined>;
/**
* Whether to run the stack with Docker Compose or Docker Swarm. Valid values: `docker-compose`, `stack`.
*/
composeType?: pulumi.Input<string>;
composeType?: pulumi.Input<string | undefined>;
/**
* Write the environment variables to a `.env` file next to the Compose file.
*/
createEnvFile?: pulumi.Input<boolean | undefined>;
/**
* RFC 3339 timestamp of when the stack was created.
*/
createdAt?: pulumi.Input<string>;
createdAt?: pulumi.Input<string | undefined>;
/**
* Branch to deploy for a custom Git remote.
*/
customGitBranch?: pulumi.Input<string>;
customGitBranch?: pulumi.Input<string | undefined>;
/**
* SSH key used to clone a private custom Git remote.
*/
customGitSshKeyId?: pulumi.Input<string>;
customGitSshKeyId?: pulumi.Input<string | undefined>;
/**
* Git remote URL, when `sourceType` is `git`.
*/
customGitUrl?: pulumi.Input<string>;
customGitUrl?: pulumi.Input<string | undefined>;
/**
* Whether to delete the stack's Docker volumes when this resource is destroyed. Defaults to `false`, which preserves the data.
*/
deleteVolumes?: pulumi.Input<boolean>;
deleteVolumes?: pulumi.Input<boolean | undefined>;
/**
* Free-form description.
*/
description?: pulumi.Input<string>;
description?: pulumi.Input<string | undefined>;
/**
* Clone Git submodules when checking out the repository.
*/
enableSubmodules?: pulumi.Input<boolean>;
enableSubmodules?: pulumi.Input<boolean | undefined>;
/**
* Environment variables in `KEY=value` format, one per line.
*/
env?: pulumi.Input<string>;
env?: pulumi.Input<string | undefined>;
/**
* Environment this stack belongs to.
*/
environmentId?: pulumi.Input<string>;
environmentId?: pulumi.Input<string | undefined>;
/**
* Gitea branch to deploy.
*/
giteaBranch?: pulumi.Input<string>;
giteaBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured Gitea provider connection.
*/
giteaId?: pulumi.Input<string>;
giteaId?: pulumi.Input<string | undefined>;
/**
* Gitea repository owner.
*/
giteaOwner?: pulumi.Input<string>;
giteaOwner?: pulumi.Input<string | undefined>;
/**
* Gitea repository name.
*/
giteaRepository?: pulumi.Input<string>;
giteaRepository?: pulumi.Input<string | undefined>;
/**
* ID of the configured GitHub provider connection.
*/
githubId?: pulumi.Input<string>;
githubId?: pulumi.Input<string | undefined>;
/**
* GitLab branch to deploy.
*/
gitlabBranch?: pulumi.Input<string>;
gitlabBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured GitLab provider connection.
*/
gitlabId?: pulumi.Input<string>;
gitlabId?: pulumi.Input<string | undefined>;
/**
* GitLab repository owner.
*/
gitlabOwner?: pulumi.Input<string>;
gitlabOwner?: pulumi.Input<string | undefined>;
/**
* Full GitLab namespace path.
*/
gitlabPathNamespace?: pulumi.Input<string>;
gitlabPathNamespace?: pulumi.Input<string | undefined>;
/**
* Numeric GitLab project ID.
*/
gitlabProjectId?: pulumi.Input<number>;
gitlabProjectId?: pulumi.Input<number | undefined>;
/**
* GitLab repository name.
*/
gitlabRepository?: pulumi.Input<string>;
gitlabRepository?: pulumi.Input<string | undefined>;
/**
* Icon shown next to the stack in the Dokploy UI.
*/
icon?: pulumi.Input<string | undefined>;
/**
* Run the stack on its own isolated Docker network.
*/
isolatedDeployment?: pulumi.Input<boolean>;
isolatedDeployment?: pulumi.Input<boolean | undefined>;
/**
* Prefix volume names for isolated deployments. Retained for backwards compatibility.
*/
isolatedDeploymentsVolume?: pulumi.Input<boolean>;
isolatedDeploymentsVolume?: pulumi.Input<boolean | undefined>;
/**
* Display name of the stack.
*/
name?: pulumi.Input<string>;
name?: pulumi.Input<string | undefined>;
/**
* GitHub repository owner.
*/
owner?: pulumi.Input<string>;
owner?: pulumi.Input<string | undefined>;
/**
* Append a random suffix to service and volume names.
*/
randomize?: pulumi.Input<boolean>;
randomize?: pulumi.Input<boolean | undefined>;
/**
* GitHub repository name.
*/
repository?: pulumi.Input<string>;
repository?: pulumi.Input<string | undefined>;
/**
* Remote server to deploy on. Omit to use the Dokploy host itself.
*/
serverId?: pulumi.Input<string>;
serverId?: pulumi.Input<string | undefined>;
/**
* Per-service Docker network attachments, as a JSON object mapping each service name in the stack to an array of network IDs.
*/
serviceNetworks?: pulumi.Input<string | undefined>;
/**
* Where the Compose file comes from. Valid values: `git`, `github`, `gitlab`, `bitbucket`, `gitea`, `raw`.
*/
sourceType?: pulumi.Input<string>;
sourceType?: pulumi.Input<string | undefined>;
/**
* Suffix appended to generated resource names.
*/
suffix?: pulumi.Input<string>;
suffix?: pulumi.Input<string | undefined>;
/**
* What triggers an automatic deployment. Valid values: `push`, `tag`.
*/
triggerType?: pulumi.Input<string>;
triggerType?: pulumi.Input<string | undefined>;
/**
* Glob patterns that limit which changed paths trigger an automatic deployment.
*/
watchPaths?: pulumi.Input<pulumi.Input<string>[]>;
watchPaths?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
/**
@@ -510,79 +547,83 @@ export interface ComposeArgs {
/**
* Unique Docker stack name. Generated by Dokploy when omitted. Changing it forces a new stack.
*/
appName?: pulumi.Input<string>;
appName?: pulumi.Input<string | undefined>;
/**
* Deploy automatically when the configured trigger fires.
*/
autoDeploy?: pulumi.Input<boolean>;
autoDeploy?: pulumi.Input<boolean | undefined>;
/**
* Bitbucket branch to deploy.
*/
bitbucketBranch?: pulumi.Input<string>;
bitbucketBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured Bitbucket provider connection.
*/
bitbucketId?: pulumi.Input<string>;
bitbucketId?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository owner.
*/
bitbucketOwner?: pulumi.Input<string>;
bitbucketOwner?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository name.
*/
bitbucketRepository?: pulumi.Input<string>;
bitbucketRepository?: pulumi.Input<string | undefined>;
/**
* Bitbucket repository slug.
*/
bitbucketRepositorySlug?: pulumi.Input<string>;
bitbucketRepositorySlug?: pulumi.Input<string | undefined>;
/**
* GitHub branch to deploy.
*/
branch?: pulumi.Input<string>;
branch?: pulumi.Input<string | undefined>;
/**
* Custom `docker compose` command to run.
*/
command?: pulumi.Input<string>;
command?: pulumi.Input<string | undefined>;
/**
* Inline Compose file contents. Used when `sourceType` is `raw`.
*/
composeFile?: pulumi.Input<string>;
composeFile?: pulumi.Input<string | undefined>;
/**
* Path to the Compose file within the repository.
*/
composePath?: pulumi.Input<string>;
composePath?: pulumi.Input<string | undefined>;
/**
* Whether to run the stack with Docker Compose or Docker Swarm. Valid values: `docker-compose`, `stack`.
*/
composeType?: pulumi.Input<string>;
composeType?: pulumi.Input<string | undefined>;
/**
* Write the environment variables to a `.env` file next to the Compose file.
*/
createEnvFile?: pulumi.Input<boolean | undefined>;
/**
* Branch to deploy for a custom Git remote.
*/
customGitBranch?: pulumi.Input<string>;
customGitBranch?: pulumi.Input<string | undefined>;
/**
* SSH key used to clone a private custom Git remote.
*/
customGitSshKeyId?: pulumi.Input<string>;
customGitSshKeyId?: pulumi.Input<string | undefined>;
/**
* Git remote URL, when `sourceType` is `git`.
*/
customGitUrl?: pulumi.Input<string>;
customGitUrl?: pulumi.Input<string | undefined>;
/**
* Whether to delete the stack's Docker volumes when this resource is destroyed. Defaults to `false`, which preserves the data.
*/
deleteVolumes?: pulumi.Input<boolean>;
deleteVolumes?: pulumi.Input<boolean | undefined>;
/**
* Free-form description.
*/
description?: pulumi.Input<string>;
description?: pulumi.Input<string | undefined>;
/**
* Clone Git submodules when checking out the repository.
*/
enableSubmodules?: pulumi.Input<boolean>;
enableSubmodules?: pulumi.Input<boolean | undefined>;
/**
* Environment variables in `KEY=value` format, one per line.
*/
env?: pulumi.Input<string>;
env?: pulumi.Input<string | undefined>;
/**
* Environment this stack belongs to.
*/
@@ -590,89 +631,97 @@ export interface ComposeArgs {
/**
* Gitea branch to deploy.
*/
giteaBranch?: pulumi.Input<string>;
giteaBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured Gitea provider connection.
*/
giteaId?: pulumi.Input<string>;
giteaId?: pulumi.Input<string | undefined>;
/**
* Gitea repository owner.
*/
giteaOwner?: pulumi.Input<string>;
giteaOwner?: pulumi.Input<string | undefined>;
/**
* Gitea repository name.
*/
giteaRepository?: pulumi.Input<string>;
giteaRepository?: pulumi.Input<string | undefined>;
/**
* ID of the configured GitHub provider connection.
*/
githubId?: pulumi.Input<string>;
githubId?: pulumi.Input<string | undefined>;
/**
* GitLab branch to deploy.
*/
gitlabBranch?: pulumi.Input<string>;
gitlabBranch?: pulumi.Input<string | undefined>;
/**
* ID of the configured GitLab provider connection.
*/
gitlabId?: pulumi.Input<string>;
gitlabId?: pulumi.Input<string | undefined>;
/**
* GitLab repository owner.
*/
gitlabOwner?: pulumi.Input<string>;
gitlabOwner?: pulumi.Input<string | undefined>;
/**
* Full GitLab namespace path.
*/
gitlabPathNamespace?: pulumi.Input<string>;
gitlabPathNamespace?: pulumi.Input<string | undefined>;
/**
* Numeric GitLab project ID.
*/
gitlabProjectId?: pulumi.Input<number>;
gitlabProjectId?: pulumi.Input<number | undefined>;
/**
* GitLab repository name.
*/
gitlabRepository?: pulumi.Input<string>;
gitlabRepository?: pulumi.Input<string | undefined>;
/**
* Icon shown next to the stack in the Dokploy UI.
*/
icon?: pulumi.Input<string | undefined>;
/**
* Run the stack on its own isolated Docker network.
*/
isolatedDeployment?: pulumi.Input<boolean>;
isolatedDeployment?: pulumi.Input<boolean | undefined>;
/**
* Prefix volume names for isolated deployments. Retained for backwards compatibility.
*/
isolatedDeploymentsVolume?: pulumi.Input<boolean>;
isolatedDeploymentsVolume?: pulumi.Input<boolean | undefined>;
/**
* Display name of the stack.
*/
name?: pulumi.Input<string>;
name?: pulumi.Input<string | undefined>;
/**
* GitHub repository owner.
*/
owner?: pulumi.Input<string>;
owner?: pulumi.Input<string | undefined>;
/**
* Append a random suffix to service and volume names.
*/
randomize?: pulumi.Input<boolean>;
randomize?: pulumi.Input<boolean | undefined>;
/**
* GitHub repository name.
*/
repository?: pulumi.Input<string>;
repository?: pulumi.Input<string | undefined>;
/**
* Remote server to deploy on. Omit to use the Dokploy host itself.
*/
serverId?: pulumi.Input<string>;
serverId?: pulumi.Input<string | undefined>;
/**
* Per-service Docker network attachments, as a JSON object mapping each service name in the stack to an array of network IDs.
*/
serviceNetworks?: pulumi.Input<string | undefined>;
/**
* Where the Compose file comes from. Valid values: `git`, `github`, `gitlab`, `bitbucket`, `gitea`, `raw`.
*/
sourceType?: pulumi.Input<string>;
sourceType?: pulumi.Input<string | undefined>;
/**
* Suffix appended to generated resource names.
*/
suffix?: pulumi.Input<string>;
suffix?: pulumi.Input<string | undefined>;
/**
* What triggers an automatic deployment. Valid values: `push`, `tag`.
*/
triggerType?: pulumi.Input<string>;
triggerType?: pulumi.Input<string | undefined>;
/**
* Glob patterns that limit which changed paths trigger an automatic deployment.
*/
watchPaths?: pulumi.Input<pulumi.Input<string>[]>;
watchPaths?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}