YouYiDianNotificationCenter/docker-compose.yml
2026-08-29 20:51:03 +08:00

30 lines
1.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
notification-center:
image: youyidian-notification-center:${YYD_NOTIFICATION_IMAGE_TAG:-latest}
build: .
container_name: youyidian-notification-center
restart: unless-stopped
ports:
- "127.0.0.1:${PORT:-3088}:3088"
environment:
PORT: 3088
# 单连接 + 启动期 PRAGMA(WAL/busy_timeout):SQLite 写锁不再放大为整库请求超时。
DATABASE_URL: file:/app/data/notifications.db?connection_limit=1
DINGTALK_APP_KEY: ${DINGTALK_APP_KEY}
DINGTALK_APP_SECRET: ${DINGTALK_APP_SECRET}
DINGTALK_ROBOT_CODE: ${DINGTALK_ROBOT_CODE}
DINGTALK_CORP_ID: ${DINGTALK_CORP_ID:-}
YYD_NOTIFICATION_PUBLIC_BASE_URL: ${YYD_NOTIFICATION_PUBLIC_BASE_URL:-}
YYD_NOTIFICATION_DIRECTORY_URL: ${YYD_NOTIFICATION_DIRECTORY_URL:-https://sc.jiansun.vip/api/internal/notification-center/recipients/resolve}
DINGTALK_LOGIN_TICKET_TTL_SECONDS: ${DINGTALK_LOGIN_TICKET_TTL_SECONDS:-60}
YYD_NOTIFICATION_PROJECTS_JSON: ${YYD_NOTIFICATION_PROJECTS_JSON}
YYD_NOTIFICATION_ADMIN_API_SECRET: ${YYD_NOTIFICATION_ADMIN_API_SECRET}
YYD_NOTIFICATION_CONFIG_ENCRYPTION_KEY: ${YYD_NOTIFICATION_CONFIG_ENCRYPTION_KEY}
WORKER_ENABLED: ${WORKER_ENABLED:-true}
WORKER_SEND_MIN_INTERVAL_MS: ${WORKER_SEND_MIN_INTERVAL_MS:-250}
volumes:
- notification_data:/app/data
volumes:
notification_data: