mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 05:29:39 +02:00
feat(matrix-nutriphi-bot): add Matrix bot for nutrition tracking
- NestJS bot with matrix-bot-sdk integration - Commands: !help, !login, !analyze, !today, !week, !goals, !favorites, !tips - Integrates with NutriPhi backend API (port 3023) - User session management with JWT authentication - Image analysis via Gemini AI (NutriPhi backend) - Port 3316 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
111fc473d9
commit
57b9d4cb37
34 changed files with 3241 additions and 463 deletions
|
|
@ -975,6 +975,35 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Matrix Calendar Bot (GDPR-compliant Calendar)
|
||||
# ============================================
|
||||
|
||||
matrix-calendar-bot:
|
||||
image: matrix-calendar-bot:latest
|
||||
container_name: manacore-matrix-calendar-bot
|
||||
restart: always
|
||||
depends_on:
|
||||
synapse:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3315
|
||||
TZ: Europe/Berlin
|
||||
MATRIX_HOMESERVER_URL: http://synapse:8008
|
||||
MATRIX_ACCESS_TOKEN: ${MATRIX_CALENDAR_BOT_TOKEN}
|
||||
MATRIX_ALLOWED_ROOMS: ${MATRIX_CALENDAR_BOT_ROOMS:-}
|
||||
volumes:
|
||||
- matrix_calendar_bot_data:/app/data
|
||||
ports:
|
||||
- "3315:3315"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3315/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Matrix Todo Bot (GDPR-compliant Task Management)
|
||||
# ============================================
|
||||
|
|
@ -1004,6 +1033,39 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Matrix NutriPhi Bot (GDPR-compliant Nutrition Tracking)
|
||||
# ============================================
|
||||
|
||||
matrix-nutriphi-bot:
|
||||
image: matrix-nutriphi-bot:latest
|
||||
container_name: manacore-matrix-nutriphi-bot
|
||||
restart: always
|
||||
depends_on:
|
||||
synapse:
|
||||
condition: service_healthy
|
||||
nutriphi-backend:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3316
|
||||
TZ: Europe/Berlin
|
||||
MATRIX_HOMESERVER_URL: http://synapse:8008
|
||||
MATRIX_ACCESS_TOKEN: ${MATRIX_NUTRIPHI_BOT_TOKEN}
|
||||
MATRIX_ALLOWED_ROOMS: ${MATRIX_NUTRIPHI_BOT_ROOMS:-}
|
||||
NUTRIPHI_BACKEND_URL: http://nutriphi-backend:3023
|
||||
MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
volumes:
|
||||
- matrix_nutriphi_bot_data:/app/data
|
||||
ports:
|
||||
- "3316:3316"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3316/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Auto-Update (Watchtower)
|
||||
# ============================================
|
||||
|
|
@ -1052,5 +1114,9 @@ volumes:
|
|||
name: manacore-matrix-stats-bot
|
||||
matrix_project_doc_bot_data:
|
||||
name: manacore-matrix-project-doc-bot
|
||||
matrix_calendar_bot_data:
|
||||
name: manacore-matrix-calendar-bot
|
||||
matrix_todo_bot_data:
|
||||
name: manacore-matrix-todo-bot
|
||||
matrix_nutriphi_bot_data:
|
||||
name: manacore-matrix-nutriphi-bot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue