Contact us Search Login
← Back to blog
Duncan

Running Statamic in Docker

PHP-FPM, Nginx, and MySQL wired together for local development.

The stack

  • app — PHP 8.4 FPM running Laravel/Statamic
  • nginx — serves public/ and proxies PHP
  • mysql — database for sessions/cache (content stays flat-file here)

Run seeders inside the app container:

docker exec statamic_app php artisan db:seed --class=StatamicContentSeeder