Skip to main content

Statamic on Kubernetes

Statamic logoStatamic logo

Flat-file and database CMS on Laravel.

larakube statamic:new
🟡 Not yet verified🏘️ Joins the Plex CommonsPHPScaffolds via official CLI

Statamic is Laravel underneath, so it gets the same machinery: a production image, Kubernetes manifests and the Laravel features you want — scaffolded from Statamic's own starter.

Not yet verified

The Statamic scaffolder is written but has not been run end to end yet. Try it, but don't promise it to a client until this badge turns green.

🚀 Create a project

larakube statamic:new site

LaraKube CLI runs composer create-project statamic/statamic inside a container, with the gd and exif extensions Statamic's image handling needs, then asks:

ChoiceOptionsWith --fast
PHP versionSupported PHP versionsPHP 8.4
Laravel featuresScheduling, queues, Horizon and the rest — see LaravelDefaults
DatabasePostgreSQL, MySQL, MariaDB, SQLiteDefault
CacheRedis and alternativesRedis
Object storage for assetsNone (local filesystem), MinIO (recommended), SeaweedFS, GarageMinIO
SearchNone, plus the supported enginesNone

🧱 What LaraKube CLI adds

The same as a Laravel project: Dockerfile.php, the Kubernetes manifests in .infrastructure/, the .larakube.json blueprint, and service values in .env. Laravel's /up route is the health check.

🏘️ Shared services from the Plex Commons

After scaffolding, statamic:new joins the cluster's Plex Commons for its database, cache and storage. Pass --no-plex to keep your own pods.

💻 Run it locally

cd site
larakube up
larakube art make:statamic-user

The last command creates your first control panel user.

☁️ Deploy

larakube env production
larakube cloud:deploy production

➡️ Next