From 50da81efdeb9999f11808a75594ce0daee0e9bcb Mon Sep 17 00:00:00 2001 From: James White Date: Wed, 17 Jun 2026 11:59:29 +0200 Subject: [PATCH] Upgrade Directus Docker Compose config Updated Directus image version and added new environment variables. --- content/getting-started/2.create-a-project.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/getting-started/2.create-a-project.md b/content/getting-started/2.create-a-project.md index de96f27e2..bb0ec078b 100644 --- a/content/getting-started/2.create-a-project.md +++ b/content/getting-started/2.create-a-project.md @@ -64,7 +64,7 @@ Create a `docker-compose.yml` file in the `directus` directory: ```yaml [docker-compose.yml] services: directus: - image: directus/directus:11.17.0 + image: directus/directus:12.0.2 ports: - 8055:8055 volumes: @@ -76,6 +76,10 @@ services: DB_CLIENT: "sqlite3" DB_FILENAME: "/directus/database/data.db" WEBSOCKETS_ENABLED: "true" + PUBLIC_URL: "http://localhost:8055/" + LICENSE_KEY: "" + + ``` ::callout{icon="i-lucide-info"} @@ -87,6 +91,8 @@ services: - `SECRET` is required and should be a long random value. `SECRET` is used to sign access tokens. - `DB_CLIENT` and `DB_FILENAME` are defining the connection to your database. - `WEBSOCKETS_ENABLED` is not required, but enables [Directus Realtime](/getting-started/connect-to-realtime). + - `PUBLIC_URL` is the full URL where your project is accessed. It's used to generate links, asset URLs, and redirects — and a license binds to it on first use, so set it accurately. + - `LICENSE_KEY` is optional — leave empty for the core tier, or add your key to unlock a [licensed tier](/licensing/overview). :: Open the Terminal, navigate to your `directus` directory, and run the following command: