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
- Install Docker Desktop (Windows/macOS) or Docker Engine + Compose (Linux).
- Clone the repository and copy
.env.exampleto.env. - Set database host values to match your Docker service names (for example,
DB_HOST=mysqlandREDIS_HOST=redis). - 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 - 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, rundocker compose exec app php artisan config:clearso cached configuration refreshes immediately.