Files
tymeslot/compose.slack.yml
2026-09-17 12:59:36 +01:00

23 lines
796 B
YAML

---
version: "3.8"
# Slack notifications. Two modes:
#
# Webhook-URL mode: set SLACK_ENABLED=true and leave SLACK_CLIENT_ID unset. Users paste an Incoming Webhook URL from their own Slack app.
#
# OAuth mode (recommended for teams): set SLACK_CLIENT_ID and insert the slack_client_secret. This adds the "Add to Slack" button to the dashboard.
# Create the app at https://api.slack.com/apps with bot scopes chat:write, chat:write.public, channels:read, groups:read, team:read and redirect URL https://${DOMAIN}/api/slack/oauth/callback
services:
app:
environment:
- SLACK_ENABLED
- SLACK_CLIENT_ID
secrets:
- slack_client_secret
secrets:
slack_client_secret:
external: true
name: ${STACK_NAME}_slack_client_secret_${SECRET_SLACK_CLIENT_SECRET_VERSION:-v1}