mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
✨ feat(matrix-clock-bot): add Matrix bot for time tracking
- Add Docker build configuration with npm overrides for matrix-sdk - Update port from 3317 to 3318 to avoid conflict with Zitare bot - Add tsconfig.build.json for production builds - Add clock-bot service to docker-compose.macmini.yml - Bot supports timers, alarms, and world clocks via Matrix chat Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9a7afea7fe
commit
e2a3277fa1
7 changed files with 90 additions and 19 deletions
|
|
@ -1099,6 +1099,37 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Matrix Clock Bot (GDPR-compliant Time Tracking)
|
||||
# ============================================
|
||||
|
||||
matrix-clock-bot:
|
||||
image: matrix-clock-bot:latest
|
||||
container_name: manacore-matrix-clock-bot
|
||||
restart: always
|
||||
depends_on:
|
||||
synapse:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3318
|
||||
TZ: Europe/Berlin
|
||||
MATRIX_HOMESERVER_URL: http://synapse:8008
|
||||
MATRIX_ACCESS_TOKEN: ${MATRIX_CLOCK_BOT_TOKEN}
|
||||
MATRIX_ALLOWED_ROOMS: ${MATRIX_CLOCK_BOT_ROOMS:-}
|
||||
CLOCK_API_URL: http://host.docker.internal:3017/api/v1
|
||||
STT_URL: http://mana-stt:3020
|
||||
volumes:
|
||||
- matrix_clock_bot_data:/app/data
|
||||
ports:
|
||||
- "3318:3318"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3318/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Auto-Update (Watchtower)
|
||||
# ============================================
|
||||
|
|
@ -1155,3 +1186,5 @@ volumes:
|
|||
name: manacore-matrix-nutriphi-bot
|
||||
matrix_zitare_bot_data:
|
||||
name: manacore-matrix-zitare-bot
|
||||
matrix_clock_bot_data:
|
||||
name: manacore-matrix-clock-bot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue