mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
🚀 feat(zitare): add Docker deployment infrastructure
- Add Dockerfile for zitare-backend (multi-stage build, port 3007) - Add docker-entrypoint.sh for database setup - Add zitare-backend service to docker-compose.macmini.yml - Update matrix-zitare-bot to depend on zitare-backend - Add zitare-backend to CI workflow (change detection + build job)
This commit is contained in:
parent
ab15c2367b
commit
c54ff859d6
4 changed files with 196 additions and 0 deletions
|
|
@ -563,6 +563,35 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
zitare-backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/zitare/apps/backend/Dockerfile
|
||||
image: zitare-backend:local
|
||||
container_name: mana-app-zitare-backend
|
||||
restart: always
|
||||
depends_on:
|
||||
mana-auth:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3007
|
||||
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/zitare
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_USER: postgres
|
||||
MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
CORS_ORIGINS: https://zitare.mana.how,https://mana.how
|
||||
ADMIN_SERVICE_KEY: ${MANA_CORE_SERVICE_KEY}
|
||||
ports:
|
||||
- "3007:3007"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3007/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Tier 4: Matrix Stack (Ports 4000-4099)
|
||||
# ============================================
|
||||
|
|
@ -874,6 +903,8 @@ services:
|
|||
depends_on:
|
||||
synapse:
|
||||
condition: service_healthy
|
||||
zitare-backend:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 4017
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue