Public Repository

Last pushed: 5 months ago
Short Description
Simple development environment for laravel framework
Full Description

README

This is a Laravel application image based on artisan and php7.0-fpm. In order to use this image effectively, you'll need to do following:

  • At host machine:
  1. Pull this image:
    $ docker pull 60gdan/laravel
  2. Create network with static IP for testing:
    $ docker network create --subnet=172.18.0.0/16 dockernet
  3. Run docker container:
    $ docker run --rm -i -t -p 127.0.0.1:8000:8000 --net dockernet --ip 172.18.0.22 -v ~/dir/with/your_projects:/srv/laravel_apps 60gdan/laravel
  • At docker container:
  1. (optional) For the first run you can create laravel template project, if you don't have one:
    # cd /srv/laravel_apps
    # laravel new your_project_name
  2. Now you can start your laravel app:
    # php /srv/laravel_apps/your_project_name/artisan serve --host 0.0.0.0 --port 8000
  3. Now if you open browser at address http://172.18.0.22:8000/, you will see Laravel start page
    So you can develop new laravel app in your favorite IDE just importing project dir (~/dir/with/your_projects/your_project_name/)!
Docker Pull Command
Owner
60gdan

Comments (0)