# Directus

> Headless CMS and data platform on Postgres, with Redis caching.

Headless CMS and data platform on Postgres, with Redis caching.

Directus with Postgres for content, Redis for cache and rate limits, and uploads on a volume. Sign in with the admin email and password you set here.

## Deploy

On the canvas, select **+ Create**, then **Template**, then **Directus**. Or run `5050 deploy --template directus`.

## Services it creates

| Service | Image | Volume | Public domain |
|---|---|---|---|
| Postgres | `postgres:17.10-bookworm` | `/var/lib/postgresql/data` | no |
| Redis | `redis:8.8.1` | `/data` | no |
| Directus | `directus/directus:12.4.1` | `/directus/uploads` | yes |

## Inputs

| Input | Required | Default |
|---|---|---|
| `SECRET`: Signs access tokens. | yes | generated: `secret(32)` |
| `ADMIN_EMAIL`: The email of the first administrator. | yes |  |
| `ADMIN_PASSWORD`: The password of the first administrator. | yes | generated: `secret(16)` |

The manifest is [templates/directus/template.yaml](https://github.com/musakkka/5050cloud/blob/main/templates/directus/template.yaml).

## Next steps

- [Templates reference](https://5050cloud.com/docs/reference/templates)
- [Backups and restore](https://5050cloud.com/docs/guides/backups)
