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
+51 -32
View File
@@ -4,6 +4,11 @@
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* A domain routed to an application or a Compose service through Dokploy's Traefik instance.
*
* Set exactly one of `applicationId` or `composeId`. When targeting a Compose stack, `serviceName` selects which service in the stack receives the traffic.
*/
export class Domain extends pulumi.CustomResource {
/**
* Get an existing Domain resource's state with the given name, ID, and optional extra
@@ -60,6 +65,10 @@ export class Domain extends pulumi.CustomResource {
* What kind of target this domain points at. Valid values: `compose`, `application`, `preview`.
*/
declare public readonly domainType: pulumi.Output<string>;
/**
* Whether the domain is served. Setting this to `false` removes the route from Traefik but keeps the certificate, path and middleware configuration intact, so the domain can be brought back without reconfiguring it.
*/
declare public readonly enabled: pulumi.Output<boolean>;
/**
* Protect this domain with Dokploy's forward auth.
*/
@@ -121,6 +130,7 @@ export class Domain extends pulumi.CustomResource {
resourceInputs["customCertResolver"] = state?.customCertResolver;
resourceInputs["customEntrypoint"] = state?.customEntrypoint;
resourceInputs["domainType"] = state?.domainType;
resourceInputs["enabled"] = state?.enabled;
resourceInputs["forwardAuthEnabled"] = state?.forwardAuthEnabled;
resourceInputs["host"] = state?.host;
resourceInputs["https"] = state?.https;
@@ -142,6 +152,7 @@ export class Domain extends pulumi.CustomResource {
resourceInputs["customCertResolver"] = args?.customCertResolver;
resourceInputs["customEntrypoint"] = args?.customEntrypoint;
resourceInputs["domainType"] = args?.domainType;
resourceInputs["enabled"] = args?.enabled;
resourceInputs["forwardAuthEnabled"] = args?.forwardAuthEnabled;
resourceInputs["host"] = args?.host;
resourceInputs["https"] = args?.https;
@@ -166,71 +177,75 @@ export interface DomainState {
/**
* Application this domain routes to.
*/
applicationId?: pulumi.Input<string>;
applicationId?: pulumi.Input<string | undefined>;
/**
* How TLS certificates are obtained. Use `letsencrypt` for automatic certificates. Valid values: `letsencrypt`, `none`, `custom`.
*/
certificateType?: pulumi.Input<string>;
certificateType?: pulumi.Input<string | undefined>;
/**
* Compose stack this domain routes to.
*/
composeId?: pulumi.Input<string>;
composeId?: pulumi.Input<string | undefined>;
/**
* RFC 3339 timestamp of when the domain was created.
*/
createdAt?: pulumi.Input<string>;
createdAt?: pulumi.Input<string | undefined>;
/**
* Traefik certificate resolver name, when `certificateType` is `custom`.
*/
customCertResolver?: pulumi.Input<string>;
customCertResolver?: pulumi.Input<string | undefined>;
/**
* Traefik entrypoint to bind, when not using the defaults.
*/
customEntrypoint?: pulumi.Input<string>;
customEntrypoint?: pulumi.Input<string | undefined>;
/**
* What kind of target this domain points at. Valid values: `compose`, `application`, `preview`.
*/
domainType?: pulumi.Input<string>;
domainType?: pulumi.Input<string | undefined>;
/**
* Whether the domain is served. Setting this to `false` removes the route from Traefik but keeps the certificate, path and middleware configuration intact, so the domain can be brought back without reconfiguring it.
*/
enabled?: pulumi.Input<boolean | undefined>;
/**
* Protect this domain with Dokploy's forward auth.
*/
forwardAuthEnabled?: pulumi.Input<boolean>;
forwardAuthEnabled?: pulumi.Input<boolean | undefined>;
/**
* Fully-qualified hostname, for example `api.example.com`.
*/
host?: pulumi.Input<string>;
host?: pulumi.Input<string | undefined>;
/**
* Serve the domain over HTTPS and redirect HTTP traffic to it.
*/
https?: pulumi.Input<boolean>;
https?: pulumi.Input<boolean | undefined>;
/**
* Path the request is rewritten to before it reaches the container, defaults to `/`.
*/
internalPath?: pulumi.Input<string>;
internalPath?: pulumi.Input<string | undefined>;
/**
* Names of Traefik middlewares to apply.
*/
middlewares?: pulumi.Input<pulumi.Input<string>[]>;
middlewares?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Path prefix this domain routes, defaults to `/`.
*/
path?: pulumi.Input<string>;
path?: pulumi.Input<string | undefined>;
/**
* Container port that receives the traffic, defaults to `3000`.
*/
port?: pulumi.Input<number>;
port?: pulumi.Input<number | undefined>;
/**
* Preview deployment this domain routes to.
*/
previewDeploymentId?: pulumi.Input<string>;
previewDeploymentId?: pulumi.Input<string | undefined>;
/**
* Name of the service inside a Compose stack that receives the traffic. Required when `composeId` is set.
*/
serviceName?: pulumi.Input<string>;
serviceName?: pulumi.Input<string | undefined>;
/**
* Strip `path` from the request before forwarding it.
*/
stripPath?: pulumi.Input<boolean>;
stripPath?: pulumi.Input<boolean | undefined>;
}
/**
@@ -240,31 +255,35 @@ export interface DomainArgs {
/**
* Application this domain routes to.
*/
applicationId?: pulumi.Input<string>;
applicationId?: pulumi.Input<string | undefined>;
/**
* How TLS certificates are obtained. Use `letsencrypt` for automatic certificates. Valid values: `letsencrypt`, `none`, `custom`.
*/
certificateType?: pulumi.Input<string>;
certificateType?: pulumi.Input<string | undefined>;
/**
* Compose stack this domain routes to.
*/
composeId?: pulumi.Input<string>;
composeId?: pulumi.Input<string | undefined>;
/**
* Traefik certificate resolver name, when `certificateType` is `custom`.
*/
customCertResolver?: pulumi.Input<string>;
customCertResolver?: pulumi.Input<string | undefined>;
/**
* Traefik entrypoint to bind, when not using the defaults.
*/
customEntrypoint?: pulumi.Input<string>;
customEntrypoint?: pulumi.Input<string | undefined>;
/**
* What kind of target this domain points at. Valid values: `compose`, `application`, `preview`.
*/
domainType?: pulumi.Input<string>;
domainType?: pulumi.Input<string | undefined>;
/**
* Whether the domain is served. Setting this to `false` removes the route from Traefik but keeps the certificate, path and middleware configuration intact, so the domain can be brought back without reconfiguring it.
*/
enabled?: pulumi.Input<boolean | undefined>;
/**
* Protect this domain with Dokploy's forward auth.
*/
forwardAuthEnabled?: pulumi.Input<boolean>;
forwardAuthEnabled?: pulumi.Input<boolean | undefined>;
/**
* Fully-qualified hostname, for example `api.example.com`.
*/
@@ -272,33 +291,33 @@ export interface DomainArgs {
/**
* Serve the domain over HTTPS and redirect HTTP traffic to it.
*/
https?: pulumi.Input<boolean>;
https?: pulumi.Input<boolean | undefined>;
/**
* Path the request is rewritten to before it reaches the container, defaults to `/`.
*/
internalPath?: pulumi.Input<string>;
internalPath?: pulumi.Input<string | undefined>;
/**
* Names of Traefik middlewares to apply.
*/
middlewares?: pulumi.Input<pulumi.Input<string>[]>;
middlewares?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Path prefix this domain routes, defaults to `/`.
*/
path?: pulumi.Input<string>;
path?: pulumi.Input<string | undefined>;
/**
* Container port that receives the traffic, defaults to `3000`.
*/
port?: pulumi.Input<number>;
port?: pulumi.Input<number | undefined>;
/**
* Preview deployment this domain routes to.
*/
previewDeploymentId?: pulumi.Input<string>;
previewDeploymentId?: pulumi.Input<string | undefined>;
/**
* Name of the service inside a Compose stack that receives the traffic. Required when `composeId` is set.
*/
serviceName?: pulumi.Input<string>;
serviceName?: pulumi.Input<string | undefined>;
/**
* Strip `path` from the request before forwarding it.
*/
stripPath?: pulumi.Input<boolean>;
stripPath?: pulumi.Input<boolean | undefined>;
}