Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.26 KB

README.md

File metadata and controls

44 lines (38 loc) · 1.26 KB

Laravel Starter Project

A Dockerized Laravel development environment

Installation

  1. Clone the Repository:
    git clone <https://github.com/15g-lucas/laravel-docker-starter.git>
  2. Install Dependencies:
    composer install
    npm install
  3. Configure Environment:
    • Copy the .env.example file to .env and customize it with your desired database credentials.
    cp .env.example .env
  4. Start Development Environment:
    docker-compose up -d --build

Customization

.env File

  • Customize database credentials: Modify the .env file with your preferred database settings:
    DB_DATABASE=your_database
    DB_USERNAME=your_username
    DB_PASSWORD=your_password
    
  • Other environment variables: You can define additional environment variables as needed for your application, such as API keys, application URLs, etc.

docker-compose.yml

  • Services: Customize the services (e.g., add a mailhog service for testing emails).
  • Networks: Define additional networks for communication between services.
  • Volumes: Mount additional volumes to persist data.

Connecting to the Container

docker exec -it laravel_app bash