Hi everyone,
I noticed that the official docker-compose.yml example on the Directus website was recently changed (a few days ago). The previous version included PostgreSQL and Redis in the configuration, but the current version now uses SQLite instead.
Here’s the current recommended setup:
services:
directus:
image: directus/directus:11.5.1
ports:
- 8055:8055
volumes:
- ./database:/directus/database
- ./uploads:/directus/uploads
- ./extensions:/directus/extensions
environment:
SECRET: "replace-with-random-value"
ADMIN_EMAIL: "admin@example.com"
ADMIN_PASSWORD: "d1r3ctu5"
DB_CLIENT: "sqlite3"
DB_FILENAME: "/directus/database/data.db"
WEBSOCKETS_ENABLED: "true"
I’m wondering what this change means:
-
Does this mean PostgreSQL and Redis are no longer recommended for production use with Directus?
-
Is SQLite now the preferred database option?
-
What about Redis for caching - is it still recommended, or is it no longer necessary?
I’m planning a production deployment and want to make sure I’m following current best practices. Any clarification would be greatly appreciated!
Thanks!