Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
A Dokploy workload mount.
Create Mount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Mount(name: string, args: MountArgs, opts?: CustomResourceOptions);@overload
def Mount(resource_name: str,
args: MountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Mount(resource_name: str,
opts: Optional[ResourceOptions] = None,
mount_path: Optional[str] = None,
type: Optional[str] = None,
application_id: Optional[str] = None,
compose_id: Optional[str] = None,
content: Optional[str] = None,
file_path: Optional[str] = None,
host_path: Optional[str] = None,
mariadb_id: Optional[str] = None,
mysql_id: Optional[str] = None,
postgres_id: Optional[str] = None,
redis_id: Optional[str] = None,
volume_name: Optional[str] = None)func NewMount(ctx *Context, name string, args MountArgs, opts ...ResourceOption) (*Mount, error)public Mount(string name, MountArgs args, CustomResourceOptions? opts = null)type: dokploy:Mount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_mount" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mountResource = new Dokploy.Mount("mountResource", new()
{
MountPath = "string",
Type = "string",
ApplicationId = "string",
ComposeId = "string",
Content = "string",
FilePath = "string",
HostPath = "string",
MariadbId = "string",
MysqlId = "string",
PostgresId = "string",
RedisId = "string",
VolumeName = "string",
});
example, err := dokploy.NewMount(ctx, "mountResource", &dokploy.MountArgs{
MountPath: pulumi.String("string"),
Type: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
ComposeId: pulumi.String("string"),
Content: pulumi.String("string"),
FilePath: pulumi.String("string"),
HostPath: pulumi.String("string"),
MariadbId: pulumi.String("string"),
MysqlId: pulumi.String("string"),
PostgresId: pulumi.String("string"),
RedisId: pulumi.String("string"),
VolumeName: pulumi.String("string"),
})
resource "dokploy_mount" "mountResource" {
pulumi {
replace_on_changes = [application_id, compose_id, mariadb_id, mysql_id, postgres_id, redis_id, type]
}
lifecycle {
create_before_destroy = true
}
mount_path = "string"
type = "string"
application_id = "string"
compose_id = "string"
content = "string"
file_path = "string"
host_path = "string"
mariadb_id = "string"
mysql_id = "string"
postgres_id = "string"
redis_id = "string"
volume_name = "string"
}
var mountResource = new Mount("mountResource", MountArgs.builder()
.mountPath("string")
.type("string")
.applicationId("string")
.composeId("string")
.content("string")
.filePath("string")
.hostPath("string")
.mariadbId("string")
.mysqlId("string")
.postgresId("string")
.redisId("string")
.volumeName("string")
.build());
mount_resource = dokploy.Mount("mountResource",
mount_path="string",
type="string",
application_id="string",
compose_id="string",
content="string",
file_path="string",
host_path="string",
mariadb_id="string",
mysql_id="string",
postgres_id="string",
redis_id="string",
volume_name="string")
const mountResource = new dokploy.Mount("mountResource", {
mountPath: "string",
type: "string",
applicationId: "string",
composeId: "string",
content: "string",
filePath: "string",
hostPath: "string",
mariadbId: "string",
mysqlId: "string",
postgresId: "string",
redisId: "string",
volumeName: "string",
});
type: dokploy:Mount
properties:
applicationId: string
composeId: string
content: string
filePath: string
hostPath: string
mariadbId: string
mountPath: string
mysqlId: string
postgresId: string
redisId: string
type: string
volumeName: string
Mount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Mount resource accepts the following input properties:
- Mount
Path string - The path inside the workload.
- Type string
- The mount type.
- Application
Id string - The application target.
- Compose
Id string - The Compose target.
- Content string
- The file content.
- File
Path string - The file path.
- Host
Path string - The host path.
- Mariadb
Id string - The MariaDB target.
- Mysql
Id string - The MySQL target.
- Postgres
Id string - The Postgres target.
- Redis
Id string - The Redis target.
- Volume
Name string - The volume name.
- Mount
Path string - The path inside the workload.
- Type string
- The mount type.
- Application
Id string - The application target.
- Compose
Id string - The Compose target.
- Content string
- The file content.
- File
Path string - The file path.
- Host
Path string - The host path.
- Mariadb
Id string - The MariaDB target.
- Mysql
Id string - The MySQL target.
- Postgres
Id string - The Postgres target.
- Redis
Id string - The Redis target.
- Volume
Name string - The volume name.
- mount_
path string - The path inside the workload.
- type string
- The mount type.
- application_
id string - The application target.
- compose_
id string - The Compose target.
- content string
- The file content.
- file_
path string - The file path.
- host_
path string - The host path.
- mariadb_
id string - The MariaDB target.
- mysql_
id string - The MySQL target.
- postgres_
id string - The Postgres target.
- redis_
id string - The Redis target.
- volume_
name string - The volume name.
- mount
Path String - The path inside the workload.
- type String
- The mount type.
- application
Id String - The application target.
- compose
Id String - The Compose target.
- content String
- The file content.
- file
Path String - The file path.
- host
Path String - The host path.
- mariadb
Id String - The MariaDB target.
- mysql
Id String - The MySQL target.
- postgres
Id String - The Postgres target.
- redis
Id String - The Redis target.
- volume
Name String - The volume name.
- mount
Path string - The path inside the workload.
- type string
- The mount type.
- application
Id string - The application target.
- compose
Id string - The Compose target.
- content string
- The file content.
- file
Path string - The file path.
- host
Path string - The host path.
- mariadb
Id string - The MariaDB target.
- mysql
Id string - The MySQL target.
- postgres
Id string - The Postgres target.
- redis
Id string - The Redis target.
- volume
Name string - The volume name.
- mount_
path str - The path inside the workload.
- type str
- The mount type.
- application_
id str - The application target.
- compose_
id str - The Compose target.
- content str
- The file content.
- file_
path str - The file path.
- host_
path str - The host path.
- mariadb_
id str - The MariaDB target.
- mysql_
id str - The MySQL target.
- postgres_
id str - The Postgres target.
- redis_
id str - The Redis target.
- volume_
name str - The volume name.
- mount
Path String - The path inside the workload.
- type String
- The mount type.
- application
Id String - The application target.
- compose
Id String - The Compose target.
- content String
- The file content.
- file
Path String - The file path.
- host
Path String - The host path.
- mariadb
Id String - The MariaDB target.
- mysql
Id String - The MySQL target.
- postgres
Id String - The Postgres target.
- redis
Id String - The Redis target.
- volume
Name String - The volume name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Mount resource produces the following output properties:
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj