2025-08-15 16:16:36 +02:00
2025-08-15 16:16:36 +02:00
2026-02-11 18:38:44 +01:00
2026-01-08 16:10:12 +01:00
2025-08-15 22:41:49 +02:00
2026-02-11 18:38:44 +01:00
2026-03-10 17:37:53 +00:00

directus

Directus is an open-source headless CMS & API for managing agnostic content.

  • Maintainer: @val
  • Status: testing
  • Category: Apps
  • Image: directus, 4, upstream
  • Healthcheck: Yes
  • Backups: Yes
  • Email: Yes
  • Tests: No
  • SSO: Yes

Quick start

  • abra app new directus
  • abra app secret generate <app-name> --all
  • abra app config <app-name>
  • abra app deploy <app-name>

For more, see docs.coopcloud.tech.

Additional configs

smtp

By default sendmail is configured. To use SMTP uncomment the respective section in your .env-file and insert the smtp-secret:

  • abra app secret insert <app-name> smtp_password v1 <your-smtp-password>

By this you make usage of compose.smtp.yml

sso (oidc)

The config of one oidc-provider is prepared. Just uncomment an fill in the respective part in .env-file. By this you make usage of compose.oidc.yml. If you need further providers, consider adding a custom compose-file containing the necessary env-vars as indicated in the directus' docs.

using the directus' cli for templates

In abra.sh you find some commands you can run with abra app cmd for usage of directus' cli (e.g.) for exporting and importing a schema / template / data ...

setting custom .env-vars / secrets

Automation in directus is a mighty tool to customize your CMS. If you need to pass a custom env-var or secret, you can do so by adding a custom compose-file.

This is a working example. Make sure you add all your env-vars, that you want to be able to access in flows to the comma separated env-var FLOWS_ENV_ALLOW_LIST like explained here.

directus.compose.customenv.yml

services:
  app:
    environment:
      FLOWS_ENV_ALLOW_LIST: "API_USER,API_TOKEN"
      API_USER: "MyApiUser" 
      API_TOKEN_FILE: /run/secrets/api_token

    secrets:
      - api_token
      

secrets:
  api_token:
    name: ${STACK_NAME}_oidc_secret_${SECRET_API_TOKEN_VERSION}
    external: true

in your env-file you would add:

# custom secrets
COMPOSE_FILE="compose.yml:../../servers/<yourserver>/directus.compose.customenv.yml"

SECRET_API_TOKEN_VERSION=v1

and then redeploy: abra app deploy -f <app-name>

Description
Directus is a (headless) CMS / backend system for managing data and creating APIs.
Readme 84 KiB
Languages
Shell 91.3%
Roff 8.7%