mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
fix(api/deploy): use mana-api.mana.how to avoid api.mana.how conflict
api.mana.how is already routed to mana-api-gateway (Go service on port 3016) — has been since long before the apps/api consolidation. Hijacking it would have broken whatever existing consumers point at the gateway. Switch the new unified Hono/Bun apps/api server to mana-api.mana.how instead. Cloudflared tunnel route + Cloudflare DNS CNAME registered on the Mac Mini side; mana-web's PUBLIC_MANA_API_URL_CLIENT updated to match. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2f00d9c5d3
commit
e3029ef80b
1 changed files with 39 additions and 2 deletions
|
|
@ -757,11 +757,15 @@ services:
|
|||
PUBLIC_SYNC_SERVER_URL_CLIENT: https://sync.mana.how
|
||||
# Unified Hono/Bun API server (apps/api) — hosts all 16 product
|
||||
# compute modules (calendar, todo, picture, … who) on port 3060.
|
||||
# Browser calls go through https://api.mana.how (cloudflared
|
||||
# Browser calls go through https://mana-api.mana.how (cloudflared
|
||||
# tunnel route to mana-api:3060). SSR calls inside the docker
|
||||
# network use the internal hostname.
|
||||
#
|
||||
# NOTE: api.mana.how is already in use for the Go mana-api-gateway
|
||||
# on port 3016 (different service, predates apps/api). The
|
||||
# mana-api.* subdomain is the unambiguous new home.
|
||||
PUBLIC_MANA_API_URL: http://mana-api:3060
|
||||
PUBLIC_MANA_API_URL_CLIENT: https://api.mana.how
|
||||
PUBLIC_MANA_API_URL_CLIENT: https://mana-api.mana.how
|
||||
# Per-app HTTP backend URLs (todo-api, calendar-api, contacts-api,
|
||||
# chat-api, storage-api, cards-api, music-api, nutriphi-api,
|
||||
# picture-api, presi-api, zitare-api, clock-api, context-api) and
|
||||
|
|
@ -1505,6 +1509,39 @@ services:
|
|||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
# ============================================
|
||||
# News Ingester
|
||||
# ============================================
|
||||
# services/news-ingester — pulls public RSS/JSON feeds into the
|
||||
# news.curated_articles pool every 15 min. The unified mana-api reads
|
||||
# from the same table to serve /api/v1/news/feed; user reading lists
|
||||
# remain client-side in the unified Mana app's local IndexedDB.
|
||||
|
||||
news-ingester:
|
||||
build:
|
||||
context: services/news-ingester
|
||||
dockerfile: Dockerfile
|
||||
image: news-ingester:local
|
||||
container_name: news-ingester
|
||||
restart: always
|
||||
mem_limit: 256m
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
environment:
|
||||
TZ: Europe/Berlin
|
||||
PORT: 3066
|
||||
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/mana_platform
|
||||
TICK_INTERVAL_MS: "900000"
|
||||
RUN_ON_STARTUP: "true"
|
||||
ports:
|
||||
- "3066:3066"
|
||||
healthcheck:
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3066/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||||
interval: 120s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
# ============================================
|
||||
# Games
|
||||
# ============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue