26 lines
1013 B
YAML
26 lines
1013 B
YAML
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:-}
|
||
DINGTALK_LOGIN_TICKET_TTL_SECONDS: ${DINGTALK_LOGIN_TICKET_TTL_SECONDS:-60}
|
||
YYD_NOTIFICATION_PROJECTS_JSON: ${YYD_NOTIFICATION_PROJECTS_JSON}
|
||
WORKER_ENABLED: ${WORKER_ENABLED:-true}
|
||
volumes:
|
||
- notification_data:/app/data
|
||
|
||
volumes:
|
||
notification_data:
|