Back to Apps
Directus

Deploy Directus on Your Own Server

Directus is an open-source tool for managing content across all your omni-channel digital experiences

πŸ“ CMSπŸ› οΈ Developer Tools

Want to deploy Directus on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is Directus?

Directus is an open-source suite of software that wraps custom SQL databases with a dynamic API and intuitive Admin App. For more information and available options, see https://github.com/directus/docker or the official documentation at https://docs.directus.io

Self-Host Directus

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  directus:
    image: directus/directus:10.4.3
    environment:
      ADMIN_EMAIL: admin@example.com
      ADMIN_PASSWORD: e49eaa29
      CACHE_ENABLED: "true"
      CACHE_STORE: redis
      DB_CLIENT: pg
      DB_DATABASE: directus
      DB_HOST: directus-postgres
      DB_PASSWORD: 691b29ea41e0224e
      DB_PORT: "5432"
      DB_USER: directus
      KEY: f7c1afbd0f7c0deb
      REDIS_HOST: directus-redis
      REDIS_PORT: "6379"
      SECRET: 252274439505b26b
    volumes:
      - directus-uploads:/directus/uploads
      - directus-extensions:/directus/extensions
    depends_on:
      - directus-postgres
      - directus-redis
  directus-postgres:
    image: postgres:13
    environment:
      POSTGRES_DB: directus
      POSTGRES_PASSWORD: 691b29ea41e0224e
      POSTGRES_USER: directus
    volumes:
      - directus-data:/var/lib/postgresql/data
  directus-redis:
    image: redis:7
    volumes:
      - directus-redis:/data
volumes:
  directus-uploads: {}
  directus-extensions: {}
  directus-data: {}
  directus-redis: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:8055

Why Self-Host Directus?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

directus/directus:${directus_tag}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"