Anteris-Dev / skaffold-laravel

Skaffolds a Laravel project ready to run in a Docker container.
1 stars 1 forks source link

About this Package

This package makes it easy to get up and running with a Docker environment containing Laravel. It gives you the tools you need to begin developing and then build this into a Docker image for production.

Requirements

Getting Started

To being working with this project the following steps must be taken.

  1. Run composer create-project anteris-dev/skaffold-laravel in your project directory. This will download the project files.
  2. (Optional) If you have an existing Laravel project, create a directory labeled src and copy your project files into it. On startup, the container will install your composer and npm dependencies, but you will need to run any migrations or builds manually through the workspace container.
  3. Run docker-compose up -d in your skaffold directory. If no Laravel files are found in the src directory, a new Laravel project will be created. This may take a few moments.
  4. Go to http://localhost to view your Laravel website!

Development Tips

Directory Structure

Despite our best efforts, the directory structure in this project is slightly complex. We believe this is a worthwhile trade-off, as it keeps things nicely tucked into their own sections. Each service has been given their own "domain" under the docker directory.