Open the server Apps tab
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.


Open-source headless CMS and data platform with REST/GraphQL APIs
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the Directus template in Server Compass to deploy a self-hosted headless CMS and data platform on your VPS, then verify the Directus login screen in a browser.
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Use the template picker search to find Directus in the Server Compass template catalog.

Choose the Directus template. Server Compass fills the Directus image, PostgreSQL service, persistent upload and extension volumes, admin fields, and required secret values.

Confirm the app name and compose services. In this run, the app was named directus-demo and used host port 8055.

Review the generated environment values, keep the admin password and Directus secret masked, confirm the port is available, and click Deploy Now.

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Directus and PostgreSQL images, starts the containers, and verifies the stack.

After deployment finishes, return to the Apps tab and confirm the Directus app is marked Running with its application URL available.

Click Open Application or open the application URL in a browser. The Directus login screen confirms the deployed app is reachable and ready for the generated admin credentials.

The Directus app loaded successfully in a browser and displayed the login screen.
It deploys Directus 11 with a PostgreSQL 16 database, persistent uploads, persistent extensions, generated secret values, and an initial admin account.
The tutorial used host port 8055, which maps to the Directus web UI on container port 8055.
A fresh Directus deployment is considered reachable when the login screen loads. Logging in would expose generated credentials in the capture flow, so the public guide verifies the safe pre-login screen.
No. The deployment guide should live on the Directus template detail page and be linked from the reusable template deployment docs page.
Want full control? Here's how to deploy Directus yourself using Docker Compose.
Use your terminal to securely access your server. You'll need your server's IP address.
# Connect via SSH
ssh root@your-vps-ip
# Alternative with key file
ssh -i /path/to/key root@your-vps-ipFirst time? Make sure Docker is installed on your VPS. Run: curl -fsSL https://get.docker.com | sh
Initialize a project folder on your server.
# Create and navigate to project directory
mkdir -p ~/apps/directus
cd ~/apps/directusUse this Docker Compose configuration for your deployment:
services:
directus:
image: directus/directus:11
ports:
- "8055:8055"
environment:
- SECRET=<your-secret>
- [email protected]
- ADMIN_PASSWORD=<your-admin-password>
- DB_CLIENT=pg
- DB_HOST=postgres
- DB_PORT=5432
- DB_DATABASE=directus
- DB_USER=directus
- DB_PASSWORD=<your-db-password>
- WEBSOCKETS_ENABLED=true
volumes:
- directus_uploads:/directus/uploads
- directus_extensions:/directus/extensions
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_DB=directus
- POSTGRES_USER=directus
- POSTGRES_PASSWORD=<your-db-password>
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U directus -d directus"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
directus_uploads:
directus_extensions:
postgres_data:
PORTHost port to expose(default: 8055)SECRETSecret key for encryptionDB_PASSWORDDatabase passwordADMIN_PASSWORDAdmin passwordBring up your containers in detached mode.
# Start all services
docker compose up -d
# List running containers
docker compose ps
# Watch the logs
docker compose logs -fAllow the application port through your server's firewall.
# Allow the application port through firewall
sudo ufw allow 8055/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:8055Skip the terminal and deploy Directus with a visual interface. Configure everything with clicks, not commands.
After deploying Directus with Server Compass, complete these steps to finish setup
Log in with admin credentials
Create your data collections
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting Directus
Simply download Server Compass, connect to your VPS, and select Directus from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
Directus requires a minimum of 512MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Directus backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Directus image will be pulled and deployed with zero downtime.
Directus is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.
Download Server Compass and deploy Directus to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass