Prerequisites
- A Discord server where you have Manage Webhooks permission
- Admin access to your Dokploy organization
Creating a Discord Webhook
Configure Webhook
- Name your webhook (e.g., “Dokploy Notifications”)
- Select the channel where notifications should appear
- (Optional) Upload a custom avatar for the webhook
Configuring Discord in Dokploy
Enter Configuration
Provide the following details:
- Name: A descriptive name for this notification (e.g., “Production Alerts”)
- Webhook URL: Paste the webhook URL from Discord
- Enable Decoration: Toggle to add markdown quote decorations (
>) to messages
Select Events
Choose which events should trigger Discord notifications:
- Application Deploy
- Application Build Error
- Database Backup
- Volume Backup
- Dokploy Restart
- Docker Cleanup
- Server Threshold Exceeded
Configuration Schema
The Discord notification configuration uses the following structure:Notification Format
Discord notifications from Dokploy use rich embeds with the following structure:Test Notification
Event Notifications
Production notifications include:- Title: Event type with emoji indicator
- Description: Event details and context
- Color: Status-based color coding (green for success, red for errors)
- Timestamp: Automatically added by Discord
Message Decoration
The decoration option controls whether messages are formatted with markdown quotes:Decorated messages appear with a left border in Discord, making them visually distinct from regular messages. This is useful for quickly identifying automated notifications.
Webhook Permissions
The Discord webhook created for Dokploy has the following capabilities:- ✅ Send messages to the specified channel
- ✅ Send rich embeds with formatting
- ✅ Use custom username and avatar (configured in Discord)
- ❌ Cannot read messages or channel history
- ❌ Cannot manage channels or roles
Webhooks have limited permissions by design. They can only post messages to the channel they’re configured for, making them safe for integration purposes.
Troubleshooting
Test Connection Fails
Invalid webhook URL- Verify the webhook URL is correct and complete
- Ensure the URL starts with
https://discord.com/api/webhooks/ - Check that the webhook hasn’t been deleted in Discord
- Navigate to Server Settings > Integrations > Webhooks in Discord
- Verify the webhook still exists and is enabled
- If deleted, create a new webhook and update Dokploy
- Discord has rate limits for webhooks (30 requests per minute)
- If you receive rate limit errors, notifications will be queued and retried
Not Receiving Notifications
Check event configuration- Verify the notification is enabled for the events you want to receive
- Confirm events are being triggered in Dokploy (check logs)
- Ensure the channel still exists in your Discord server
- Verify webhooks are allowed in the channel (some channels may have restrictions)
- Check if your Discord server has disabled webhooks
- Verify you haven’t reached the webhook limit for your server
Best Practices
Organize by Environment
Create separate Discord channels for different environments:- #production-alerts: Critical production events
- #staging-deploys: Staging deployments and tests
- #backups: Database and volume backups
- #monitoring: System resource monitoring
Use Clear Webhook Names
Name your webhooks descriptively in Discord:- ✅ “Dokploy Production”
- ✅ “Dokploy Staging”
- ❌ “Webhook 1”
Enable Decoration for Visibility
Enable the decoration option to make automated notifications stand out from regular chat messages.Role Mentions (Advanced)
While Dokploy doesn’t directly support role mentions, you can configure Discord channel notifications to ping specific roles when webhooks post messages.API Integration
Manage Discord notifications programmatically using the Dokploy API:Webhook Security
Protecting Your Webhook URL
- Keep URLs secret: Webhook URLs grant posting access to your channel
- Regenerate if exposed: Delete and recreate webhooks if URLs are compromised
- Limit access: Only share webhook URLs with trusted systems
Revoking Access
To revoke a webhook’s access:Limits and Quotas
- Rate Limit: 30 requests per minute per webhook
- Message Length: 2000 characters per message
- Embed Limit: 10 embeds per message
- Webhooks per Channel: 15 webhooks maximum
- Webhooks per Server: 100 webhooks maximum
Dokploy respects Discord’s rate limits and will automatically queue notifications if the limit is reached.
Next Steps
Slack Notifications
Set up Slack webhook integration
Telegram Notifications
Configure Telegram bot alerts
Email Notifications
Set up SMTP email notifications
Notification Overview
Learn about all notification options