feat(manadeck): add Docker deployment for backend and web

Create web Dockerfile and add both manadeck-backend (port 3009) and
manadeck-web (port 5023) to docker-compose.macmini.yml. Add Cloudflare
tunnel routes for manadeck.mana.how and manadeck-api.mana.how.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-25 15:13:45 +01:00
parent b9a9052ae5
commit 6c1b472e59
3 changed files with 160 additions and 2 deletions

View file

@ -619,6 +619,37 @@ services:
retries: 3
start_period: 55s
manadeck-backend:
build:
context: .
dockerfile: apps/manadeck/apps/backend/Dockerfile
image: manadeck-backend:local
container_name: mana-app-manadeck-backend
restart: always
depends_on:
mana-auth:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 3009
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/manadeck
MANA_CORE_AUTH_URL: http://mana-auth:3001
CORS_ORIGINS: https://manadeck.mana.how,https://mana.how
S3_ENDPOINT: http://minio:9000
S3_REGION: us-east-1
S3_ACCESS_KEY: ${MINIO_ROOT_USER:-minioadmin}
S3_SECRET_KEY: ${MINIO_ROOT_PASSWORD:-minioadmin}
S3_BUCKET: manadeck-storage
GLITCHTIP_DSN: ""
ports:
- "3009:3009"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3009/api/health"]
interval: 120s
timeout: 10s
retries: 3
start_period: 55s
nutriphi-backend:
build:
context: .
@ -1624,6 +1655,32 @@ services:
retries: 3
start_period: 45s
manadeck-web:
build:
context: .
dockerfile: apps/manadeck/apps/web/Dockerfile
image: manadeck-web:local
container_name: mana-app-manadeck-web
restart: always
depends_on:
manadeck-backend:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 5023
PUBLIC_BACKEND_URL: http://manadeck-backend:3009
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
PUBLIC_BACKEND_URL_CLIENT: https://manadeck-api.mana.how
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how
ports:
- "5023:5023"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5023/health"]
interval: 180s
timeout: 10s
retries: 3
start_period: 45s
nutriphi-web:
image: ghcr.io/memo-2023/nutriphi-web:latest
container_name: mana-app-nutriphi-web