Skip to content

Payload CMS

Payload is a headless CMS and application framework built with TypeScript and React. This template deploys Payload with a PostgreSQL database.

What’s included

ServiceImage/SourcePortPurpose
PayloadYour Payload repo3000CMS + admin panel + API
PostgreSQLpostgres:165432Content database

Deploying

  1. Go to Templates → Payload CMS
  2. Enter your Payload project’s GitHub repository URL
  3. Click Deploy

Stackpad:

  • Creates a PostgreSQL database with auto-generated credentials
  • Builds your Payload application from source
  • Injects DATABASE_URL into the Payload service
  • Deploys both services connected via private networking

Accessing the admin panel

After deployment, the Payload admin panel is available at:

https://your-project.your-org.stackpad.eu/admin

On first visit, you’ll be prompted to create an admin user.

Configuration

Payload reads the database connection from the DATABASE_URL environment variable. A typical Payload config looks like:

import { buildConfig } from 'payload';
import { postgresAdapter } from '@payloadcms/db-postgres';
export default buildConfig({
db: postgresAdapter({
pool: { connectionString: process.env.DATABASE_URL! },
}),
// ... your collections
});

What’s next?