mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
feat(planta): add Docker deployment for planta-backend and matrix-planta-bot
- Add Dockerfile and docker-entrypoint.sh for planta-backend - Add planta-backend service to docker-compose.macmini.yml (port 3022) - Add matrix-planta-bot service to docker-compose.macmini.yml (port 4022) - Configure dependencies: mana-auth, minio, redis, synapse, planta-backend Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f1518e8c39
commit
c999999456
3 changed files with 181 additions and 0 deletions
|
|
@ -624,6 +624,43 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
planta-backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/planta/apps/backend/Dockerfile
|
||||
image: planta-backend:local
|
||||
container_name: mana-app-planta-backend
|
||||
restart: always
|
||||
depends_on:
|
||||
mana-auth:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3022
|
||||
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/planta
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_USER: postgres
|
||||
MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
CORS_ORIGINS: https://planta.mana.how,https://mana.how
|
||||
GOOGLE_GEMINI_API_KEY: ${GOOGLE_GEMINI_API_KEY}
|
||||
S3_ENDPOINT: http://minio:9000
|
||||
S3_PUBLIC_ENDPOINT: https://minio.mana.how
|
||||
S3_REGION: us-east-1
|
||||
S3_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
|
||||
S3_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
|
||||
S3_BUCKET: planta-storage
|
||||
ports:
|
||||
- "3022:3022"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3022/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Tier 4: Matrix Stack (Ports 4000-4099)
|
||||
# ============================================
|
||||
|
|
@ -1121,6 +1158,46 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
matrix-planta-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: services/matrix-planta-bot/Dockerfile
|
||||
image: matrix-planta-bot:local
|
||||
container_name: mana-matrix-bot-planta
|
||||
restart: always
|
||||
depends_on:
|
||||
synapse:
|
||||
condition: service_healthy
|
||||
mana-auth:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
planta-backend:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 4022
|
||||
TZ: Europe/Berlin
|
||||
MATRIX_HOMESERVER_URL: http://synapse:8008
|
||||
MATRIX_ACCESS_TOKEN: ${MATRIX_PLANTA_BOT_TOKEN}
|
||||
MATRIX_ALLOWED_ROOMS: ${MATRIX_PLANTA_BOT_ROOMS:-}
|
||||
PLANTA_BACKEND_URL: http://planta-backend:3022
|
||||
PLANTA_API_PREFIX: /api
|
||||
MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis123}
|
||||
volumes:
|
||||
- matrix_bots_data:/app/data
|
||||
ports:
|
||||
- "4022:4022"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:4022/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# ============================================
|
||||
# Tier 5: Web Frontends (Ports 5000-5099)
|
||||
# ============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue