Overview
Domains in Dokploy allow you to configure custom domains for your applications and compose services with automatic SSL certificate management using Let’s Encrypt or custom certificates.Create Domain
Add a new domain to an application or compose service.string
required
The domain name (e.g.,
example.com, app.example.com).string
URL path for routing (e.g.,
/api, /admin). Leave empty for root path.number
The container port to route traffic to.
boolean
default:true
Enable HTTPS for this domain.
string
required
SSL certificate type:
letsencrypt- Automatic Let’s Encrypt certificatenone- No SSL (HTTP only)custom- Use a custom certificate
string
required
The type of service:
application or compose.string
Required if domainType is
application.string
Required if domainType is
compose.string
For compose services, specify which service to route to.
cURL
Get Application Domains
Retrieve all domains configured for an application.string
required
The application ID to get domains for.
cURL
Get Compose Domains
Retrieve all domains configured for a compose service.string
required
The compose application ID.
cURL
Get Domain Details
Get detailed information about a specific domain.string
required
The unique identifier of the domain.
cURL
Update Domain
Modify an existing domain configuration.string
required
The ID of the domain to update.
string
New domain name.
string
Updated path.
number
New port number.
boolean
Enable or disable HTTPS.
string
Change certificate type.
cURL
Delete Domain
Remove a domain from an application or compose service.string
required
The ID of the domain to delete.
cURL
Generate Traefik.me Domain
Generate a wildcard domain using traefik.me for testing purposes.string
required
The application name to generate domain for.
string
Server ID if deploying to a specific server.
Response
Returns a generated domain in the format:{appName}-{hash}.{server-ip}.traefik.me
cURL
Check Traefik.me Availability
Check if traefik.me domain generation is available for a server.string
required
The server ID to check.
Response
Returns the server IP address if traefik.me domains can be generated.cURL
Validate Domain
Verify that a domain’s DNS is correctly configured.string
required
The domain name to validate.
string
Expected server IP address.
Response
Returns validation status and DNS information.cURL
SSL Certificate Types
Let’s Encrypt
Automatic SSL certificates from Let’s Encrypt:- Free and automatic renewal
- Widely trusted
- Requires domain to point to your server
- HTTP-01 challenge for validation
Example
Custom Certificate
Use your own SSL certificate:- Upload certificate and private key
- Supports wildcard certificates
- Manual renewal required
string
PEM-encoded SSL certificate.
string
PEM-encoded private key.
No SSL
HTTP only (not recommended for production):Example
Path-Based Routing
Route different paths to different services:Example: Route /api to backend
Wildcard Domains
For wildcard domains (e.g.,*.example.com):
- Use a custom certificate that supports wildcards
- Configure DNS with a wildcard A record
- Set
hostto*.example.com
Domain Status
string
Unique identifier for the domain configuration in Traefik.
string
Current SSL certificate type.
boolean
Whether HTTPS is enabled.
string
The domain name.
number
Container port for routing.