Templates

Built-in Templates

Pre-configured templates for quick application deployment.

FlatRun includes a variety of built-in templates for deploying common applications, frameworks, and services. Each template comes with sensible defaults and can be customized to your needs.

Applications

WordPress

Port: 80

The world's most popular content management system. Includes support for shared database configuration.

PHP 8 Apache MySQL/MariaDB
Mount Options:
  • app — Mount entire WordPress installation
  • uploads — Mount only media uploads
  • plugins — Mount only plugins directory

Ghost

Port: 2368

Professional publishing platform for modern journalists and bloggers.

Node.js SQLite/MySQL
Mount Options:
  • content — Mount content directory (themes, images, data)

Frameworks

Laravel

Port: 8000

PHP web application framework with expressive, elegant syntax.

PHP 8.2 Composer Artisan
Mount Options:
  • app — Mount entire Laravel application
  • env — Mount only environment file
  • storage — Mount only storage directory

Next.js

Port: 3000

React framework for production with hybrid static and server rendering.

Node.js 20 React TypeScript
Mount Options:
  • app — Mount entire Next.js application

Astro

Port: 4321

Content-focused static site generator with island architecture.

Node.js Vite SSG/SSR
Mount Options:
  • app — Mount entire Astro project

Runtimes

Node.js

Port: 3000

JavaScript runtime for building server-side applications.

Node.js 20 LTS npm/yarn
Mount Options:
  • app — Mount your Node.js application

PHP

Port: 80

PHP runtime with Apache web server.

PHP 8.2 Apache Extensions
Mount Options:
  • html — Mount web root directory

Databases

MySQL

Port: 3306

Popular open-source relational database management system.

MySQL 8 InnoDB

MariaDB

Port: 3306

Community-developed fork of MySQL with enhanced features.

MariaDB 10 MySQL Compatible

PostgreSQL

Port: 5432

Advanced open-source relational database with extensive features.

PostgreSQL 16 JSONB Extensions

Infrastructure

Nginx

Port: 80, 443

High-performance web server, reverse proxy, and load balancer.

HTTP/2 SSL/TLS Reverse Proxy

Redis

Port: 6379

In-memory data store for caching, sessions, and message queuing.

Redis 7 Persistence

Basic

Static Site

Port: 80

Simple Nginx-based hosting for static HTML, CSS, and JavaScript.

Nginx SPA Support
Mount Options:
  • html — Mount your static files

Using Templates

Via UI

  1. Click "New Deployment"
  2. Select "Easy Mode"
  3. Browse or search templates
  4. Select a template
  5. Configure name, domain, and mount options
  6. Click "Deploy"

Via API

# List templates
curl -X GET "http://localhost:8090/api/templates" \
  -H "Authorization: Bearer $TOKEN"

# Deploy from template
curl -X POST "http://localhost:8090/api/deployments" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-blog",
    "template_id": "wordpress",
    "port": 8080,
    "auto_start": true
  }'