Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

this is just my learning path for dealing with laravel 5.x and docker

Notifications You must be signed in to change notification settings

zgraveyard/laravel-docker-learning

Repository files navigation

Run Laravel on Docker (for developments only)

This is just a small start point if you want to run laravel on docker without creating new Vagrant image.

Requirements

  1. Install docker locally ( I've used docker for mac, but I guess it shoudl work any where you have docker installed ).
  2. PHP-fpm, nginx, mysql, and redis docker images, and don't worry the script will download them for you.

Usage

  1. You can use the exec file to execute the commands on docker, but make sure that you give it execute permission chmod +x exec.
  2. To install the libraries using composer you execute ./exec docker_laravel composer.phar install.
  3. To require a new library using composer you execute a command like ./exec docker_laravel composer.phar require league/flysystem-sftp.
  4. To run any artisan command you can execute it like ./exec docker_laravel artisan list.

PS: the exec may not work as it should, esp if you have a lot of argument to send, and am still trying to figure the best way to rewrite the file.

Thanks

  1. Thanks for Kyle Ferguson for his post as it was the starting point for me.
  2. Thanks for Dayle Rees for give me the idea of the exec shell script.
  3. Thanks for everyone who helped to create those nice docker images.

Note for windows users

For windows users, make sure that you have enabled the shared volume from docker engine before you run the script

settings shared drives

License

licensed under the MIT license.

About

this is just my learning path for dealing with laravel 5.x and docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages