mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
feat(memoro): add deployment infrastructure and migrate web services to new Hono server
- Dockerfile for audio-server (Bun + ffmpeg) - docker-compose.macmini.yml entries for memoro-server (3015) and memoro-audio-server (3016) - Dev commands: dev:memoro:server, dev:memoro:audio-server, dev:memoro:app, dev:memoro:full - MEMORO_* env vars in .env.development - web: add PUBLIC_MEMORO_SERVER_URL env var to env.ts and .env.example - web: rewrite transcriptionService → POST /api/v1/memos (new server path) - web: rewrite spaceService → /api/v1/spaces/* (aligned with actual Hono routes) - server: fix callAudioServer param name audioPath (was filePath) in memos.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6e0dd0c065
commit
6d2509c258
9 changed files with 359 additions and 789 deletions
|
|
@ -1455,6 +1455,76 @@ services:
|
|||
retries: 3
|
||||
start_period: 45s
|
||||
|
||||
memoro-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile.hono-server
|
||||
args:
|
||||
APP: memoro
|
||||
image: memoro-server:local
|
||||
container_name: mana-app-memoro-server
|
||||
restart: always
|
||||
mem_limit: 256m
|
||||
depends_on:
|
||||
mana-auth:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3015
|
||||
MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
CORS_ORIGINS: http://memoro-web:5038,https://memoro.mana.how
|
||||
MEMORO_SUPABASE_URL: ${MEMORO_SUPABASE_URL}
|
||||
MEMORO_SUPABASE_SERVICE_KEY: ${MEMORO_SUPABASE_SERVICE_KEY}
|
||||
SERVICE_KEY: ${MEMORO_SERVICE_KEY}
|
||||
AUDIO_SERVER_URL: http://memoro-audio-server:3016
|
||||
GEMINI_API_KEY: ${GEMINI_API_KEY}
|
||||
AZURE_OPENAI_KEY: ${AZURE_OPENAI_KEY}
|
||||
AZURE_OPENAI_ENDPOINT: ${AZURE_OPENAI_ENDPOINT}
|
||||
AZURE_OPENAI_DEPLOYMENT: ${AZURE_OPENAI_DEPLOYMENT}
|
||||
MANA_CREDITS_URL: http://mana-credits:3006
|
||||
MANA_CREDITS_SERVICE_KEY: ${MANA_CREDITS_SERVICE_KEY}
|
||||
ports:
|
||||
- "3015:3015"
|
||||
healthcheck:
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3015/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
|
||||
memoro-audio-server:
|
||||
build:
|
||||
context: apps/memoro/apps/audio-server
|
||||
dockerfile: Dockerfile
|
||||
image: memoro-audio-server:local
|
||||
container_name: mana-app-memoro-audio-server
|
||||
restart: always
|
||||
mem_limit: 512m
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3016
|
||||
SERVICE_KEY: ${MEMORO_SERVICE_KEY}
|
||||
MEMORO_SERVER_URL: http://memoro-server:3015
|
||||
MEMORO_SUPABASE_URL: ${MEMORO_SUPABASE_URL}
|
||||
MEMORO_SUPABASE_SERVICE_KEY: ${MEMORO_SUPABASE_SERVICE_KEY}
|
||||
AZURE_SPEECH_KEY_1: ${AZURE_SPEECH_KEY_1}
|
||||
AZURE_SPEECH_KEY_2: ${AZURE_SPEECH_KEY_2}
|
||||
AZURE_SPEECH_KEY_3: ${AZURE_SPEECH_KEY_3}
|
||||
AZURE_SPEECH_KEY_4: ${AZURE_SPEECH_KEY_4}
|
||||
AZURE_SPEECH_REGION: ${AZURE_SPEECH_REGION:-germanywestcentral}
|
||||
AZURE_SPEECH_ENDPOINT: ${AZURE_SPEECH_ENDPOINT}
|
||||
AZURE_STORAGE_ACCOUNT_NAME: ${AZURE_STORAGE_ACCOUNT_NAME}
|
||||
AZURE_STORAGE_ACCOUNT_KEY: ${AZURE_STORAGE_ACCOUNT_KEY}
|
||||
AZURE_STORAGE_CONTAINER: ${AZURE_STORAGE_CONTAINER:-memoro-batch-audio}
|
||||
ports:
|
||||
- "3016:3016"
|
||||
healthcheck:
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3016/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
mana-llm:
|
||||
build:
|
||||
context: ./services/mana-llm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue