mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 06:46:41 +02:00
feat(memoro/web): add Dockerfile + docker-compose for production deployment
- Dockerfile using sveltekit-base:local pattern (port 5038) - docker-compose.macmini.yml entry with Traefik labels for memoro.mana.how - Delete legacy authService.ts and auth.ts (app uses shared-auth-stores) - Remove middleware env vars from env.ts and app.d.ts (dead code) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
57db32f1b0
commit
9d77f12c1e
6 changed files with 108 additions and 828 deletions
|
|
@ -1527,6 +1527,51 @@ services:
|
|||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
memoro-web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/memoro/apps/web/Dockerfile
|
||||
args:
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how
|
||||
PUBLIC_MEMORO_SERVER_URL: http://memoro-server:3015
|
||||
PUBLIC_SUPABASE_URL: ${MEMORO_SUPABASE_URL}
|
||||
PUBLIC_SUPABASE_ANON_KEY: ${MEMORO_SUPABASE_ANON_KEY}
|
||||
PUBLIC_MANA_SYNC_URL: ws://mana-sync:3050
|
||||
image: memoro-web:local
|
||||
container_name: mana-app-memoro-web
|
||||
restart: always
|
||||
mem_limit: 128m
|
||||
depends_on:
|
||||
memoro-server:
|
||||
condition: service_healthy
|
||||
mana-auth:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 5038
|
||||
HOST: 0.0.0.0
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how
|
||||
PUBLIC_MEMORO_SERVER_URL: http://memoro-server:3015
|
||||
PUBLIC_SUPABASE_URL: ${MEMORO_SUPABASE_URL}
|
||||
PUBLIC_SUPABASE_ANON_KEY: ${MEMORO_SUPABASE_ANON_KEY}
|
||||
PUBLIC_MANA_SYNC_URL: ws://mana-sync:3050
|
||||
ports:
|
||||
- "5038:5038"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5038/health"]
|
||||
interval: 180s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.memoro-web.rule=Host(`memoro.mana.how`)"
|
||||
- "traefik.http.routers.memoro-web.entrypoints=websecure"
|
||||
- "traefik.http.routers.memoro-web.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.memoro-web.loadbalancer.server.port=5038"
|
||||
|
||||
mana-llm:
|
||||
build:
|
||||
context: ./services/mana-llm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue