Compare commits

...

5 Commits

Author SHA1 Message Date
8b80af3d1a fix: repair YAML indentation in docker-compose.yml (v1.15.13)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🏗️ Build (push) Failing after 21m34s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-11 19:32:19 +02:00
de42890476 fix: override CMD to apps/web/server.js (v1.15.12)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🏗️ Build (push) Successful in 14m35s
Build & Deploy / 🚀 Deploy (push) Failing after 12s
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-11 19:12:51 +02:00
fbd33da925 fix: stabilize build-time DB connection (v1.15.11)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🏗️ Build (push) Successful in 13m25s
Build & Deploy / 🚀 Deploy (push) Failing after 13s
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-11 18:06:45 +02:00
f3bab24bd3 feat: enforced CI deployment healthcheck waiting (zero-downtime)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 17s
Build & Deploy / 🏗️ Build (push) Failing after 1h24m30s
Nightly QA / 🔍 Static Analysis (push) Successful in 2m9s
Nightly QA / 🔗 Links & Deps (push) Successful in 2m45s
Nightly QA / 🎭 Lighthouse (push) Successful in 4m24s
Nightly QA / 📝 E2E (push) Successful in 5m13s
Nightly QA / 🔔 Notify (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
2026-04-10 23:13:13 +02:00
3b668fc876 fix: correct standalone entrypoint - apps/web/server.js (v1.15.9)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 39s
Build & Deploy / 🏗️ Build (push) Failing after 2h26m35s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
2026-04-10 23:11:15 +02:00
3 changed files with 11 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ jobs:
S3_BUCKET=${{ secrets.S3_BUCKET || vars.S3_BUCKET || 'mintel' }}
S3_REGION=${{ secrets.S3_REGION || vars.S3_REGION || 'fsn1' }}
S3_PREFIX=${{ secrets.S3_PREFIX || vars.S3_PREFIX || 'mintel.me' }}
DATABASE_URI=${{ secrets.DATABASE_URI || (needs.prepare.outputs.target == 'testing' && secrets.TESTING_DIRECTUS_DB_PASSWORD && format('postgres://directus:{0}@postgres-db:5432/directus', secrets.TESTING_DIRECTUS_DB_PASSWORD)) || 'postgres://payload:payload@postgres-db:5432/payload' }}
DATABASE_URI=${{ secrets.DATABASE_URI || (needs.prepare.outputs.target == 'testing' && secrets.TESTING_DIRECTUS_DB_PASSWORD && format('postgres://directus:{0}@postgres-db:5432/directus', secrets.TESTING_DIRECTUS_DB_PASSWORD)) || 'postgres://payload:payload@127.0.0.1:5432/payload' }}
PAYLOAD_SECRET=${{ secrets.PAYLOAD_SECRET || 'secret' }}
BUILD_ID=${{ github.sha }}
tags: registry.infra.mintel.me/mintel/mintel.me:${{ needs.prepare.outputs.image_tag }}
@@ -388,7 +388,7 @@ jobs:
docker volume create 'mintel-me_payload-db-data' || true
cd $SITE_DIR
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE pull
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE up -d --remove-orphans
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE up -d --wait --remove-orphans
"
- name: 🧹 Purge S3 Cache

View File

@@ -88,4 +88,4 @@ USER nextjs
# Start from the app directory to ensure references solve correctly
# In Standalone mode, Next.js expects node_modules and public relative to the server.js
WORKDIR /app
CMD ["node", "server.js"]
CMD ["node", "apps/web/server.js"]

View File

@@ -2,6 +2,7 @@ services:
mintel-me-app:
image: registry.infra.mintel.me/mintel/mintel.me:${IMAGE_TAG:-latest}
restart: always
command: node apps/web/server.js
networks:
- default
- infra
@@ -12,7 +13,6 @@ services:
# HTTP ⇒ HTTPS redirect
- 'traefik.http.routers.${PROJECT_NAME}-web.rule=${TRAEFIK_HOST_RULE:-Host("${TRAEFIK_HOST:-mintel.localhost}")}'
- "traefik.http.routers.${PROJECT_NAME}-web.entrypoints=web"
# - "traefik.http.routers.${PROJECT_NAME}-web.middlewares=redirect-https"
# HTTPS router (Standard)
- 'traefik.http.routers.${PROJECT_NAME}.rule=${TRAEFIK_HOST_RULE:-Host("${TRAEFIK_HOST:-mintel.localhost}")}'
- "traefik.http.routers.${PROJECT_NAME}.entrypoints=${TRAEFIK_ENTRYPOINT:-web}"
@@ -36,6 +36,13 @@ services:
# Middlewares
- "traefik.http.middlewares.${PROJECT_NAME}-ratelimit.ratelimit.average=100"
- "traefik.http.middlewares.${PROJECT_NAME}-ratelimit.ratelimit.burst=200"
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/ || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
- "traefik.http.middlewares.${PROJECT_NAME}-ratelimit.ratelimit.burst=50"
# Gatekeeper Router (Path-based)