Skip to content

Conversation

reynaldiarya
Copy link

Summary

Add a first-class Docker-based local environment using Laravel Sail. No app logic or database write behavior is changed.

Context / Why

Standardized containers simplify onboarding and ensure environment parity (PHP, DB) without bespoke local setup.

Changes

Dev environment (Laravel Sail)

  • Add docker-compose.yml with services:
    • laravel.test (app), mariadb (database)
  • Configure port forwards:
    • App: ${APP_PORT:-80}:80, Vite: ${VITE_PORT:-5173}
    • DB: ${FORWARD_DB_PORT:-3306}:3306
  • .env.example alignment for Sail:
    • DB_HOST=mariadb, DB_USERNAME=sail, DB_PASSWORD=password (example defaults)
  • Docs snippet in README for running with ./vendor/bin/sail or docker compose

What’s NOT included

  • No database schema changes
  • No changes to create/update logic
  • No queue/scheduler services (can be added later)

@nafiesl
Copy link
Owner

nafiesl commented Aug 31, 2025

Thanks @reynaldiarya, give me some days to test and review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants