Create Application
Endpoint
Request Body
Display name for the application. This will be shown in the Dokploy dashboard.Example:
"My Web App"ID of the environment where the application will be created. The application inherits the environment’s project association.Example:
"cm5r8k9p00002xyz"Internal application name used for Docker containers and resource naming. Must be unique, contain only lowercase letters, numbers, hyphens, and underscores. Maximum 63 characters.If not provided, a unique name will be automatically generated (e.g.,
app-xyz123).Pattern: ^[a-z0-9][a-z0-9-_]*[a-z0-9]$Example: "my-web-app"Optional description of the application. Useful for documenting the application’s purpose.Example:
"Production web application for customer portal"ID of the server where the application should be deployed. Required in cloud environments.In self-hosted deployments, applications deploy to the local server if not specified.Example:
"cm5r8k9p00003xyz"Response Fields
Unique identifier for the created application. Use this ID in all subsequent API calls.
Display name of the application.
Internal application name used for Docker containers. Guaranteed to be unique.
Application description if provided.
ID of the environment containing this application.
ID of the server where the application is deployed.
Source provider type. Defaults to
"github".Possible values: github, gitlab, bitbucket, gitea, docker, git, dropBuild strategy type. Defaults to
"nixpacks".Possible values: nixpacks, dockerfile, heroku_buildpacks, paketo_buildpacks, railpack, staticCurrent status of the application. Initially
"idle".Possible values: idle, running, done, errorNumber of application replicas. Defaults to
1.ISO 8601 timestamp when the application was created.
Automatically generated token for webhook-based deployments.
Whether automatic deployments are enabled. Defaults to
true.Whether to create a
.env file from environment variables. Defaults to true.Path within the repository to build from. Defaults to
"/".Whether to clean build cache on next deployment. Defaults to
false.Next Steps
After creating an application, you’ll typically:- Configure a source provider - Set up GitHub, GitLab, Docker registry, or other source
- Configure build settings - Choose build type and set build parameters
- Set environment variables - Configure runtime environment
- Deploy the application - Trigger the first deployment
Configure Source Providers
Set up GitHub, GitLab, or other source providers
Deploy Application
Trigger your first deployment
Example: Complete Application Setup
Here’s a complete example showing application creation followed by configuration:Notes
The
appName field must be unique across your Dokploy instance. If you don’t provide one, it will be automatically generated.Newly created applications start in the
idle state. Configure the application’s source, build settings, and environment variables before deploying.