Overview
Dokploy supports multiple Git providers:- GitHub - Popular cloud Git hosting
- GitLab - Cloud and self-hosted Git platform
- Bitbucket - Atlassian’s Git solution
- Gitea - Lightweight self-hosted Git service
- Custom Git - Any Git server accessible via URL
application-saveGithubProvider
application-saveGithubProvider
The ID of the application to configure GitHub for.
The GitHub repository owner (username or organization).
The GitHub integration ID from Dokploy settings.
Whether to clone and update Git submodules during build.
The GitHub repository name or full path (e.g., “owner/repo”).
The branch to track for deployments. Defaults to repository’s default branch.
Path within the repository to build from (for monorepos). Defaults to root.
Array of paths to monitor for changes. Only changes in these paths trigger deployments.
Trigger deployments on
push events or tag creation.Example: Basic Configuration
Example: Monorepo with Watch Paths
Response
Updated application with GitHub provider configuration.
application-saveGitlabProvider
application-saveGitlabProvider
The ID of the application to configure GitLab for.
The GitLab branch to track.
Build path within the repository.
The GitLab repository owner or group.
The GitLab repository name.
The GitLab integration ID from Dokploy.
The GitLab project ID (numeric ID from GitLab).
The GitLab path namespace (e.g., “group/subgroup”).
Whether to enable Git submodules.
Paths to watch for triggering deployments.
Example
Response
Updated application with GitLab provider configuration.
application-saveBitbucketProvider
application-saveBitbucketProvider
The ID of the application to configure Bitbucket for.
The Bitbucket branch to track.
Build path within the repository.
The Bitbucket workspace or user.
The Bitbucket repository slug.
The Bitbucket integration ID from Dokploy.
Whether to enable Git submodules.
Paths to watch for triggering deployments.
Example
Response
Updated application with Bitbucket provider configuration.
application-saveGiteaProvider
application-saveGiteaProvider
The ID of the application to configure Gitea for.
The Gitea branch to track.
Build path within the repository.
The Gitea repository owner.
The Gitea repository name.
The Gitea integration ID from Dokploy.
Whether to enable Git submodules.
Paths to watch for triggering deployments.
Example
Response
Updated application with Gitea provider configuration.
application-saveGitProvider
application-saveGitProvider
The ID of the application to configure custom Git for.
Whether to enable Git submodules.
The Git repository URL (HTTPS or SSH).
The branch to track.
Build path within the repository.
SSH key ID for authentication (if using SSH URL).
Paths to watch for triggering deployments.
Example: SSH Authentication
Example: HTTPS Authentication
For HTTPS URLs with authentication, credentials should be configured in the Git provider integration settings, not in the URL.
Response
Updated application with custom Git provider configuration.
application-disconnectGitProvider
application-disconnectGitProvider
The ID of the application to disconnect Git provider from.
Example
Response
Updated application with Git provider fields cleared.
Common Patterns
Switch Git Providers
To switch from one provider to another, disconnect then configure the new provider:Monorepo Deployment
For monorepo applications, usebuildPath and watchPaths: