Files
websitedev/docker-compose.prod.yml
T
Do Siki 3a5a09c361
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
feat: expose deploy version (git SHA) on CMS and health endpoint
'Is the fix live?' becomes a single check instead of an SSH session:

- CMS: git short SHA read at startup, shown in the bottom bar (v<sha>),
  served by the public GET /version endpoint, recorded in a startup audit
  entry
- Website: deploy.sh exports DEPLOY_VERSION (git SHA), Dockerfile bakes it
  via build ARG into the runtime env, /api/health reports it as
  deployVersion, smoke test asserts a non-'unversioned' stamp

Closes MITHOME-63
2026-08-18 21:19:43 +02:00

59 lines
1.9 KiB
YAML

services:
# Next.js Application (Production Mode)
app:
build:
context: ./proto
dockerfile: Dockerfile
target: runner # Use runner stage for production (smaller size, no dev dependencies)
args:
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://mozdit.hu}
- DEPLOY_VERSION=${DEPLOY_VERSION:-unversioned}
container_name: mozdit-app-prod
ports:
- "8080:3000" # Host port 8080 elkerüli a lokális npm dev (3000) összeakadást
environment:
- NODE_ENV=production
# No fallback for MONGODB_URI: with root auth enabled on the Mongo container an
# unauthenticated default URI would silently break the app — fail loudly instead.
- MONGODB_URI=${MONGODB_URI}
- MONGODB_DB=${MONGODB_DB:-mozdit}
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://mozdit.hu}
- NEXT_PUBLIC_COMPANY_NAME=${NEXT_PUBLIC_COMPANY_NAME:-mozdIT Bt.}
- NEXT_PUBLIC_CONTACT_EMAIL=${NEXT_PUBLIC_CONTACT_EMAIL:-info@mozdit.hu}
- LOKI_HOST=${LOKI_HOST:-http://loki:3100}
depends_on:
- mongodb
networks:
- mozdit-network
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# MongoDB Database
mongodb:
image: mongo:7.0
container_name: mozdit-mongodb-prod
ports:
- "27018:27017" # Host port 27018 elkerüli az összeakadást a lokális Mongo-val
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER:-admin}
# No weak default password: a missing value must fail the container loudly.
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=mozdit
volumes:
- mongodb_data_prod:/data/db
networks:
- mozdit-network
restart: always
volumes:
mongodb_data_prod:
driver: local
networks:
mozdit-network:
driver: bridge