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.The domain name (e.g.,
example.com, app.example.com).URL path for routing (e.g.,
/api, /admin). Leave empty for root path.The container port to route traffic to.
Enable HTTPS for this domain.
SSL certificate type:
letsencrypt- Automatic Let’s Encrypt certificatenone- No SSL (HTTP only)custom- Use a custom certificate
The type of service:
application or compose.Required if domainType is
application.Required if domainType is
compose.For compose services, specify which service to route to.
cURL
Get Application Domains
Retrieve all domains configured for an application.The application ID to get domains for.
cURL
Get Compose Domains
Retrieve all domains configured for a compose service.The compose application ID.
cURL
Get Domain Details
Get detailed information about a specific domain.The unique identifier of the domain.
cURL
Update Domain
Modify an existing domain configuration.The ID of the domain to update.
New domain name.
Updated path.
New port number.
Enable or disable HTTPS.
Change certificate type.
cURL
Delete Domain
Remove a domain from an application or compose service.The ID of the domain to delete.
cURL
Generate Traefik.me Domain
Generate a wildcard domain using traefik.me for testing purposes.The application name to generate domain for.
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.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.The domain name to validate.
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
PEM-encoded SSL certificate.
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
Unique identifier for the domain configuration in Traefik.
Current SSL certificate type.
Whether HTTPS is enabled.
The domain name.
Container port for routing.