1.3 KiB
1.3 KiB
name, description, type
| name | description | type |
|---|---|---|
| Directus Docker image facts | Key facts about directus/directus:11.17.4 needed when extending or wrapping the image | reference |
Directus Docker image facts
- Pinned tag:
directus/directus:11.17.4— confirmed to exist on Docker Hub (pushed 2026-04-30). - Base image:
node:22-alpine(Alpine Linux). Useapk addfor additional packages. - Non-root user: The upstream image runs as user
node. Our Dockerfile switches toUSER rootfor apk/chmod, then drops back withUSER node. - Working directory:
/directus - Upstream CMD (not ENTRYPOINT):
node cli.js bootstrap && pm2-runtime start ecosystem.config.cjsnode cli.js bootstrap— idempotent DB init + admin user creation from ADMIN_EMAIL/ADMIN_PASSWORD. Safe to run every container start.pm2-runtime start ecosystem.config.cjs— starts Directus under PM2; handles crash recovery and signal forwarding.
- Port: 8055
- psql client package on Alpine:
postgresql16-client(version-specific; no genericpostgresql-clienton Alpine 3.20). - Entrypoint override: Our
entrypoint.shmust callnode /directus/cli.js bootstrapthenexec pm2-runtime start /directus/ecosystem.config.cjsto replicate upstream behavior. Do NOT just callnode /directus/cli.js start— that skips pm2.