Deploy Directus with Postgres, Redis, and Auto Backups
Deploy Directus CMS with Postgres, Redis, and Auto Backups in one click!
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
Redis
bitnami/redis:7.2.5
Just deployed
/bitnami
Directus
directus/directus
Just deployed
S3 Storage Backup
elianrichard/rclone-s3-backups
Just deployed
Postgres Backup
railwayapp-templates/postgres-s3-backups
Just deployed
Deploy and Host Directus with Postgres, Redis, and Auto Backups on Railway
A one-click Railway deployment that gives you everything you need to run Directus CMS in production — including PostgreSQL for data storage, Redis for caching, and automated backups to S3-compatible storage for database and storage.
About Hosting Directus with Postgres, Redis, and Auto Backups
Directus enables you to design and build a REST + GraphQL API in minutes and enables anyone to author content, manage media, and visualize data. Communication to Postgres is done exclusively over the private network and the database is not exposed externally in any way by default. This is done so that there are no egress fees for the database. If you want to enable access from outside of the private network you can go to the databases settings page to enable TCP proxying and enter the internal port 5432. The TCP proxy can be again removed at any point to close off external access.
Common Use Cases
- Admin Panel Development: Build admin panels for applications with custom data management interfaces
- Digital Experience Management: Manage digital experiences content through the CMS dashboard
- SaaS Platform Development: Power SaaS platforms with flexible API and content management capabilities
- Database Administrators: Automate regular PostgreSQL backups to cloud storage with configurable retention policies
- DevOps Engineers: Implement disaster recovery procedures and maintain backup compliance for production databases
Dependencies for Directus with Postgres, Redis, and Auto Backups Hosting
Directus Dependencies
The Railway template includes the required Node.js runtime and PostgreSQL database with pre-configured private network connections.
Autobackup Dependencies
- Node.js Runtime: TypeScript execution environment for cron scheduling and backup operations
- PostgreSQL Access: Database connection credentials and pg_dump utility availability
- S3 Storage: AWS S3 or compatible storage service with appropriate access permissions
Deployment Dependencies
- Directus Official Website
- Directus Documentation
- Directus Starter GitHub Repository
- PostgreSQL Documentation
- AWS S3 Documentation
- Node-cron Documentation
- Railway Cron Documentation
Implementation Details
Directus Highlights:
- Extensions Marketplace: Access to extensions and plugins for enhanced functionality
- Private Networking out of the box: Secure database communication over private network connections
- 100% JavaScript modular codebase: Modern development stack with modular architecture
- Install on top of any SQL database: Compatible with various SQL database systems
- Design and build a REST + GraphQL API in minutes: Rapid API development and deployment
- Enable anyone to author content, manage media, and visualize data: User-friendly content management interface
- Build admin panels, manage digital experiences content, power SaaS platforms, and more: Versatile platform for various application types
NOTE: Communication to Postgres and Redis is done exclusively over the private network and the database is not exposed externally in any way by default. This is done so that there are no egress fees for the database. If you want to enable access from outside of the private network you can go to the databases settings page to enable TCP proxying and enter the internal port 5432 for postgres and 6379 for redis. The TCP proxy can be again removed at any point to close off external access.
Why Deploy Directus with Postgres, Redis, and Auto Backups on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Directus with Postgres, Redis, and Auto Backups on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Redis
bitnami/redis:7.2.5Directus
directus/directusADMIN_EMAIL
Initial admin email login
ADMIN_PASSWORD
Initial admin password
STORAGE_S3_KEY
STORAGE_S3_BUCKET
STORAGE_S3_REGION
STORAGE_S3_SECRET
STORAGE_S3_ENDPOINT
S3 Storage Backup
elianrichard/rclone-s3-backupsORIGIN_S3_PROVIDER
The S3 origin provider you want to use. Supported providers: https://rclone.org/#providers
DESTINATION_S3_BUCKET
DESTINATION_S3_PROVIDER
The S3 destination provider you want to use. Supported providers: https://rclone.org/#providers
DESTINATION_S3_ACCESS_KEY_ID
DESTINATION_S3_SECRET_ACCESS_KEY
Postgres Backup
railwayapp-templates/postgres-s3-backups