Getting Started & Installation

Installing Site Store Pro with Local Docker

Published 2026-12-04 03:20:21

Why Use Docker for Local Development?

Running Site Store Pro in Docker isolates PHP, Composer, Node.js, Nginx, MySQL/MariaDB, and Redis so every developer uses the exact same stack without polluting their host OS.

Quick Setup Workflow

  1. Install Docker Desktop (Windows/macOS) or Docker Engine + Compose (Linux).
  2. Clone the repository and copy .env.example to .env.
  3. Set database host values to match your Docker service names (for example, DB_HOST=mysql and REDIS_HOST=redis).
  4. Start containers and initialize the application inside the PHP container:
    docker compose up -d --build
    docker compose exec app composer install
    docker compose exec app php artisan key:generate
    docker compose exec app php artisan migrate --seed
    docker compose exec app php artisan storage:link
  5. Compile frontend assets using Node (either on the host or via a Node container):
    npm install
    npm run build

Optional Demo Catalog in Docker

To explore the storefront with sample products, variants, categories, brands, slideshows, and testimonials, run:

docker compose exec app php artisan db:seed --class=DemoStoreSeeder

Tips for Windows Users

  • Keep your project inside WSL2 (~/projects/site-store-pro) rather than /mnt/c/ for dramatically faster bind-mount file I/O.
  • After editing .env, run docker compose exec app php artisan config:clear so cached configuration refreshes immediately.

Was this article helpful?

Let us know how we can improve our documentation.