Prerequisites
- A Slack workspace where you have permission to add apps
- Admin access to your Dokploy organization
Creating a Slack Webhook
Open Slack App Settings
Navigate to https://api.slack.com/apps and click Create New App
Create from Scratch
Select From scratch, name your app (e.g., “Dokploy Notifications”), and choose your workspace
Enable Incoming Webhooks
In your app settings:
- Navigate to Incoming Webhooks in the left sidebar
- Toggle Activate Incoming Webhooks to On
Create Webhook URL
- Scroll down and click Add New Webhook to Workspace
- Select the channel where you want to receive notifications
- Click Allow to authorize the webhook
Configuring Slack 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 Slack
- Channel: (Optional) Specify a channel name to override the default channel
Select Events
Choose which events should trigger Slack notifications:
- Application Deploy
- Application Build Error
- Database Backup
- Volume Backup
- Dokploy Restart
- Docker Cleanup
- Server Threshold Exceeded
Test Connection
Click Test Connection to send a test message to your Slack channel:Verify the message appears in your Slack channel.
Configuration Schema
The Slack notification configuration uses the following structure:Notification Format
Slack notifications from Dokploy include:- Event Type: The type of event that triggered the notification
- Timestamp: When the event occurred
- Details: Event-specific information (application name, error message, etc.)
- Status: Success or failure indicator
Example: Build Error Notification
Channel Override
The optional channel parameter allows you to send notifications to a different channel than the webhook’s default:When specifying a channel override, ensure the Slack app has permission to post to that channel. You may need to invite the bot to private channels.
Troubleshooting
Test Connection Fails
Invalid webhook URL- Verify the webhook URL is correct and complete
- Ensure the webhook hasn’t been revoked in Slack
- Check that the URL starts with
https://hooks.slack.com/services/
- If using a channel override, verify the channel exists
- Ensure the channel name includes the
#prefix - For private channels, invite the Slack app to the channel
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 Slack app hasn’t been removed from the workspace
- Check that the webhook URL is still valid in your Slack app settings
Best Practices
Separate Channels by Severity
Create multiple Slack notifications with different channels:- #critical-alerts: App build errors, Dokploy restarts
- #deployments: Successful deployments
- #backups: Database and volume backup notifications
- #monitoring: Server threshold warnings
Use Descriptive Names
Name your notification configurations clearly to identify their purpose:- ✅ “Production Build Failures”
- ✅ “Staging Deployments”
- ❌ “Slack 1”
Test Before Relying on Notifications
Always use the test connection feature to verify notifications work before assuming they’ll alert you during critical events.API Integration
You can manage Slack notifications programmatically using the Dokploy API:Next Steps
Discord Notifications
Set up Discord webhook integration
Telegram Notifications
Configure Telegram bot alerts
Email Notifications
Set up SMTP email notifications
Notification Overview
Learn about all notification options