Installing SaasForgeKit with Docker

Quick Answer

What this page covers: Installing SaasForgeKit with Docker

This guide explains how to run SaasForgeKit with Docker.

See related implementation guides

Last updated:

Installing SaasForgeKit with Docker

This guide explains how to run SaasForgeKit with Docker.

We recommend using Laravel Sail as the local Docker workflow.

For Pro version

Complete Tenancy Mode setup before running migrations.

Prepare project files

Clone the repository:

Lite (open source):

git clone [email protected]:SaasForgeKit/saasforgekit.git
cd saasforgekit

Pro (requires purchase):

git clone [email protected]:SaasForgeKit/saasforgekit-pro.git saasforgekit
cd saasforgekit

Install dependencies and environment

You can use the setup script first:

composer run setup

Or run steps manually:

composer install
cp .env.example .env
php artisan key:generate

Configure tenancy mode

Before running migrations, complete Tenancy Mode (Required).

Install Sail and start containers

Install Sail configuration (if docker-compose.yml is not present):

php artisan sail:install

Start containers:

./vendor/bin/sail up -d

Run migrations and seed data

./vendor/bin/sail artisan migrate --seed

Visit the site

Open:

http://localhost

Default admin login

If you seeded the database, the default admin account is:

Email:

[email protected]

Password:

password

Development commands

Install frontend packages in Sail:

./vendor/bin/sail npm install

Start full development stack:

./vendor/bin/sail composer run dev

Build production assets:

./vendor/bin/sail npm run build