CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
mongo-express 8081 -> 8082 (8081 is the staging app), grafana 3001 -> 3012 (3001 is step). All dev ports are reserved in the llmdev port registry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
114 lines
3.2 KiB
YAML
Executable File
114 lines
3.2 KiB
YAML
Executable File
services:
|
|
# Next.js Application
|
|
app:
|
|
build:
|
|
context: ./proto
|
|
dockerfile: Dockerfile
|
|
target: builder # Use builder stage for development
|
|
container_name: mozdit-app-dev
|
|
ports:
|
|
- "127.0.0.1:8080:3000"
|
|
environment:
|
|
- NODE_ENV=development
|
|
# WHY authSource=admin: the mongodb service below only creates a root
|
|
# user (via MONGO_INITDB_ROOT_USERNAME/PASSWORD), which forces --auth
|
|
# on the mongod process — an unauthenticated URI fails every query
|
|
# with "Command find requires authentication" (MITHOME-98).
|
|
- MONGODB_URI=mongodb://admin:password123@mongodb:27017/mozdit?authSource=admin
|
|
- MONGODB_DB=mozdit
|
|
# Dev-only, nem titkos (MITHOME-97) — Payload ez nélkül el sem indul
|
|
# ("missing secret key"), és ez a compose fájl eddig nem adta át.
|
|
- PAYLOAD_SECRET=dev-only-insecure-secret-do-not-use-in-staging-or-prod
|
|
- NEXT_PUBLIC_SITE_URL=http://localhost:8080
|
|
- NEXT_PUBLIC_COMPANY_NAME=mozdIT Bt.
|
|
- NEXT_PUBLIC_CONTACT_EMAIL=info@mozdit.hu
|
|
- NEXT_PUBLIC_WEBMAIL_URL=https://mail.mozdit.hu
|
|
volumes:
|
|
- ./proto:/app
|
|
- /app/node_modules
|
|
- /app/.next
|
|
command: npm run dev
|
|
depends_on:
|
|
- mongodb
|
|
networks:
|
|
- mozdit-network
|
|
restart: unless-stopped
|
|
|
|
# MongoDB Database
|
|
mongodb:
|
|
image: mongo:7.0
|
|
container_name: mozdit-mongodb-dev
|
|
ports:
|
|
- "127.0.0.1:27018:27017"
|
|
environment:
|
|
- MONGO_INITDB_ROOT_USERNAME=admin
|
|
- MONGO_INITDB_ROOT_PASSWORD=password123
|
|
- MONGO_INITDB_DATABASE=mozdit
|
|
volumes:
|
|
- mongodb_data:/data/db
|
|
- ./docker/mongodb/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
|
|
networks:
|
|
- mozdit-network
|
|
restart: unless-stopped
|
|
|
|
# MongoDB Express (Web UI)
|
|
mongo-express:
|
|
image: mongo-express:1.0.2
|
|
container_name: mozdit-mongo-express-dev
|
|
ports:
|
|
# MITHOME-137: 8081 is the mozdit staging app on llmdev (port registry)
|
|
- "127.0.0.1:8082:8081"
|
|
environment:
|
|
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
|
|
- ME_CONFIG_MONGODB_ADMINPASSWORD=password123
|
|
- ME_CONFIG_MONGODB_URL=mongodb://admin:password123@mongodb:27017/
|
|
- ME_CONFIG_BASICAUTH=false
|
|
depends_on:
|
|
- mongodb
|
|
networks:
|
|
- mozdit-network
|
|
restart: unless-stopped
|
|
|
|
# Loki for Logging
|
|
loki:
|
|
image: grafana/loki:2.9.0
|
|
container_name: mozdit-loki-dev
|
|
ports:
|
|
- "127.0.0.1:3100:3100"
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
volumes:
|
|
- loki_data:/loki
|
|
networks:
|
|
- mozdit-network
|
|
restart: unless-stopped
|
|
|
|
# Grafana for Monitoring
|
|
grafana:
|
|
image: grafana/grafana:10.2.0
|
|
container_name: mozdit-grafana-dev
|
|
ports:
|
|
# MITHOME-137: 3001 is taken by "step" on llmdev (port registry)
|
|
- "127.0.0.1:3012:3000"
|
|
environment:
|
|
- GF_SECURITY_ADMIN_PASSWORD=admin123
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
- ./docker/grafana/provisioning:/etc/grafana/provisioning
|
|
depends_on:
|
|
- loki
|
|
networks:
|
|
- mozdit-network
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
mongodb_data:
|
|
driver: local
|
|
loki_data:
|
|
driver: local
|
|
grafana_data:
|
|
driver: local
|
|
|
|
networks:
|
|
mozdit-network:
|
|
driver: bridge
|