---
title: "Directus template"
description: "A headless CMS with its own PostgreSQL database."
path: "/templates/directus/"
---

# Directus

A headless CMS with its own PostgreSQL database.

One command creates the Directus app and a PostgreSQL database, then connects them. Uploads stay on a disk. The app gets a public address.

## Install

Run it in the environment you want. The command waits until the public address responds.

```
dflow templates:install directus
```

One app, one PostgreSQL database, and a disk for uploads.

## Application

- Name: directus
- Image: directus/directus:12.7.0
- Port: 8055
- Replicas: 1
- Memory: 2048 Mi
- Disk: 1Gi at /directus/uploads
- Address: Public route

## Database

- Name: directus-db
- Engine: PostgreSQL
- Database: directus
- Storage: 1Gi

## How they connect

- The database host, port, user, password, and name come from directus-db.
- dFlow generates SECRET for the app.