Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 26s
Monorepo Pipeline / 🚀 Release (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Directus (Base) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been cancelled
Monorepo Pipeline / 🧪 Test (push) Has been cancelled
Monorepo Pipeline / 🧹 Lint (push) Has been cancelled
Monorepo Pipeline / 🏗️ Build (push) Has been cancelled
The Directus 11.x SDK does not export useRouter. Importing it caused a SyntaxError that crashed the entire extensions bundle, preventing ALL modules from appearing in the Data Studio sidebar. Changes: - Replace useRouter import from @directus/extensions-sdk → vue-router - Add scripts/validate-sdk-imports.sh to catch invalid SDK imports - Integrate SDK import validation into pre-push hook - Add EXTENSIONS_AUTO_RELOAD to docker-compose.yml - Remove debug NODE_ENV=development
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
services:
|
|
infra-cms:
|
|
image: directus/directus:11.15.2
|
|
ports:
|
|
- "8059:8055"
|
|
networks:
|
|
- default
|
|
- infra
|
|
environment:
|
|
KEY: "infra-cms-key"
|
|
SECRET: "infra-cms-secret"
|
|
ADMIN_EMAIL: "marc@mintel.me"
|
|
ADMIN_PASSWORD: "Tim300493."
|
|
DB_CLIENT: "sqlite3"
|
|
DB_FILENAME: "/directus/database/data.db"
|
|
WEBSOCKETS_ENABLED: "true"
|
|
PUBLIC_URL: "http://cms.localhost"
|
|
EMAIL_TRANSPORT: "smtp"
|
|
EMAIL_SMTP_HOST: "smtp.eu.mailgun.org"
|
|
EMAIL_SMTP_PORT: "587"
|
|
EMAIL_SMTP_USER: "postmaster@mg.mintel.me"
|
|
EMAIL_SMTP_PASSWORD: "4592fcb94599ee1a45b4ac2386fd0a64-102c75d8-ca2870e6"
|
|
EMAIL_SMTP_SECURE: "false"
|
|
EMAIL_FROM: "postmaster@mg.mintel.me"
|
|
LOG_LEVEL: "debug"
|
|
SERVE_APP: "true"
|
|
EXTENSIONS_AUTO_RELOAD: "true"
|
|
volumes:
|
|
- ./database:/directus/database
|
|
- ./uploads:/directus/uploads
|
|
- ./schema:/directus/schema
|
|
- ./extensions:/directus/extensions
|
|
healthcheck:
|
|
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8055/server/health" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.at-mintel-infra-cms.rule=Host(`cms.localhost`)"
|
|
- "traefik.http.services.at-mintel-infra-cms.loadbalancer.server.port=8055"
|
|
- "traefik.http.services.at-mintel-infra-cms.loadbalancer.healthcheck.path=/server/health"
|
|
- "traefik.docker.network=infra"
|
|
|
|
networks:
|
|
default:
|
|
name: at-mintel-cms-network
|
|
infra:
|
|
external: true
|