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
| Service | Image/Source | Port | Purpose |
|---|---|---|---|
| Payload | Your Payload repo | 3000 | CMS + admin panel + API |
| PostgreSQL | postgres:16 | 5432 | Content database |
Deploying
- Go to Templates → Payload CMS
- Enter your Payload project’s GitHub repository URL
- Click Deploy
Stackpad:
- Creates a PostgreSQL database with auto-generated credentials
- Builds your Payload application from source
- Injects
DATABASE_URLinto 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/adminOn 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?
- Templates overview — browse all available templates
- Custom domains — add your own domain
- Backups — manage database backups