Overview
Dokploy provides a curated collection of one-click templates that allow you to deploy popular open-source applications with minimal configuration. Templates are pre-configured Docker Compose stacks optimized for production use.Quick Setup
Deploy complex stacks in seconds
Best Practices
Pre-configured with security and performance optimizations
Customizable
Easily modify configuration after deployment
Available Templates
Dokploy includes templates for:- Analytics: Plausible, Umami, Matomo
- CMS: WordPress, Ghost, Strapi
- Databases: PostgreSQL, MySQL, MongoDB with management UIs
- Development Tools: Gitea, Code Server, Jupyter
- Project Management: Plane, Taiga
- Communication: Rocket.Chat, Mattermost
- Backend Services: Supabase, Appwrite, PocketBase
- Monitoring: Grafana, Prometheus, Uptime Kuma
- And many more
Deploying a Template
Navigate to Templates
In the Dokploy dashboard:
- Go to your project
- Click Create Service
- Select Template
Configure
Most templates require minimal configuration:
- Name: A unique identifier
- Environment Variables: Database credentials, admin passwords
- Domain: Optional custom domain
Using the API
Deploy templates programmatically:List Available Templates
Deploy from Template
Popular Templates
Plausible Analytics
Privacy-focused web analytics:Configuration Options
Configuration Options
BASE_URL: Your Plausible instance URLSECRET_KEY_BASE: Random 64-character string for encryptionDISABLE_REGISTRATION: Set to “true” to disable new signupsGOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET: For Google Search Console integration
PocketBase
Open-source backend in a single file:Getting Started
Getting Started
After deployment:
- Access
http://your-domain:8090/_/ - Create your admin account
- Start building your collections
- Use the auto-generated REST/Realtime API
Supabase
Open-source Firebase alternative:Supabase templates include: PostgreSQL, Auth, Storage, Realtime, and Studio UI.
Gitea
Lightweight self-hosted Git service:Customizing Templates
After deploying a template, you can customize it:- Via Dashboard
- Via API
- Navigate to your deployed template
- Go to Advanced → Compose File
- Edit the YAML configuration
- Click Save and Redeploy
Common Customizations
Add Custom Domain
Add Custom Domain
Add a domain to any service:
- Go to Domains tab
- Click Add Domain
- Enter your domain name
- Select SSL type (Let’s Encrypt recommended)
- Click Create
Increase Resources
Increase Resources
Add resource limits in the compose file:
Add Volumes
Add Volumes
Persist additional data:
Configure Backups
Configure Backups
Enable automated backups for template databases:
- Navigate to the database service
- Go to Backups
- Configure schedule and destination
- Click Enable
Creating Custom Templates
You can create your own templates for reuse:Template Best Practices
Use Environment Variables
Parameterize all secrets and configuration for reusability
Include Health Checks
Add health checks for automatic recovery
Set Resource Limits
Prevent resource exhaustion with limits
Use Named Volumes
Ensure data persistence across redeployments
Managing Template Deployments
Updating
Update template deployments to newer versions:Monitoring
Monitor template deployments:- Logs: View real-time logs for each service
- Metrics: CPU, memory, network usage per container
- Health Status: Automatic health check monitoring
Backup and Restore
Troubleshooting
Template fails to deploy
Template fails to deploy
- Check Dokploy logs for error messages
- Verify all required environment variables are set
- Ensure sufficient resources (CPU, memory, disk)
- Check Docker image availability
Services can't communicate
Services can't communicate
- Verify services are on the same Docker network
- Check service names match in connection strings
- Review compose file network configuration
- Ensure ports are not conflicting
Database connection errors
Database connection errors
- Wait for database to fully initialize (check logs)
- Verify database credentials match
- Check DATABASE_URL format
- Ensure database service is healthy
Domain/SSL not working
Domain/SSL not working
- Verify DNS points to your server
- Check Traefik configuration
- Review domain settings in Dokploy
- Check port mappings in compose file
Next Steps
Docker Compose
Learn more about Docker Compose in Dokploy
Domains & SSL
Configure custom domains for templates
Backups
Set up automated backups
Monitoring
Monitor your template deployments