Skip to content

Super small dockerfile for local development of already existing projects

License

Notifications You must be signed in to change notification settings

otrigg/laravel-minidock

Repository files navigation

Laravel minidock

Installs a minimal docker environment on Linux systems for already existing Laravel projects:

  • php-fpm
  • Xdebug
  • Mailhog
  • MySQL
  • phpMyAdmin

Prerequisites

  • Docker installed

Installation

  1. clone this repository.
  2. chmod 0777 on the storage folder of your project - needed for the docker user to write data.
  3. cd in your cloned repository folder.
  4. cp .env.example .env
  5. insert the absolute path of your project in the .env file.
  6. fill the .env file parameters
  7. execute build.sh
  8. Visit http://yourhost.local

Usage

Launch the commands inside this repository in order to start/stop the containers or perform other actions.

  • build.sh - builds and launch the containers
  • up.sh - starts the containers (once built)
  • down.sh - stops the containers
  • shell.sh - opens a command shell inside the container (useful for launching artisan commands)

License

MIT License

About

Super small dockerfile for local development of already existing projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published