How to Install Directus on Ubuntu 24.04

A Headless CMS (Content Management System) is a content management system that separates the backend from the frontend. Unlike traditional CMS platforms (such as WordPress or Joomla), which combine content with the web display, a headless CMS provides only a backend for managing content and an API to access it. The frontend, or display, is entirely separate and can be developed using any technology, such as JavaScript, mobile applications, or even IoT platforms. Headless CMSs are popular among developers due to their flexibility and ability to integrate content across various platforms and devices.

Directus is an open-source headless CMS based on Node.js. Its main advantages are flexibility and ease of use for building modern content management systems. This platform not only provides a user-friendly admin interface but also supports GraphQL and REST APIs, making data access convenient for any frontend application.

With Directus, you can create various types of applications, including:

  • Dynamic websites and blogs
  • Content-based mobile applications
  • Internal applications for company data management
  • Community portals or simple CRM systems

Install Directus

Directus is installed on top of Docker containers. Install Docker and Docker Compose first if they are not yet available:

Create a directory to store the Directus project:

Creating the required directory:

Create a docker-compose.yml file:

Enter the configuration:

The docker-compose.yml configuration above will create MariaDB and Directus containers.

Run docker-compose to start building the container:

After the process is complete, Directus can be accessed at http://localhost:8055. Log in using the email and password that you have set in the docker-compose.yml.

Leave a Reply

Your email address will not be published. Required fields are marked *