feat: integrate todo note microservice and modularize frontend

This commit is contained in:
Codex
2026-05-05 10:33:26 +00:00
parent abd40fa252
commit 1d0046dc50
28 changed files with 2121 additions and 381 deletions
+28
View File
@@ -53,6 +53,8 @@ services:
PROVIDER_TOKEN: "${UNIDESK_PROVIDER_TOKEN}"
HEARTBEAT_TIMEOUT_MS: "${UNIDESK_HEARTBEAT_TIMEOUT_MS}"
TASK_PENDING_TIMEOUT_MS: "${UNIDESK_TASK_PENDING_TIMEOUT_MS:-600000}"
DATABASE_VOLUME_NAME: "${UNIDESK_DATABASE_VOLUME}"
DATABASE_VOLUME_SIZE: "${UNIDESK_DATABASE_VOLUME_SIZE}"
MICROSERVICES_JSON: "${UNIDESK_MICROSERVICES_JSON:-[]}"
LOG_FILE: "/var/log/unidesk/${UNIDESK_LOG_PREFIX}_backend-core.jsonl"
volumes:
@@ -63,6 +65,32 @@ services:
timeout: 3s
retries: 20
todo-note:
build:
context: /root/todo_note
dockerfile: Dockerfile
container_name: todo-note-backend
restart: unless-stopped
depends_on:
- database
expose:
- "4211"
environment:
HOST: "0.0.0.0"
PORT: "4211"
TODO_NOTE_BACKEND_ONLY: "1"
DATABASE_URL: "postgres://${UNIDESK_DATABASE_USER}:${UNIDESK_DATABASE_PASSWORD}@database:5432/${UNIDESK_DATABASE_NAME}"
TODO_NOTE_LOGS_DIR: "logs"
LOG_FILE: "/var/log/unidesk/${UNIDESK_LOG_PREFIX}_todo-note.jsonl"
TODO_NOTE_LOG_PATH: "/var/log/unidesk/${UNIDESK_LOG_PREFIX}_todo-note.jsonl"
volumes:
- ${UNIDESK_LOG_DIR}:/var/log/unidesk
healthcheck:
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:4211/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 5s
timeout: 3s
retries: 20
frontend:
build:
context: .