Skip to content
/ docker-laravel Public template

[WIP]Development environment for Laravel

License

Notifications You must be signed in to change notification settings

dsk52/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-laravel

Env

  • Docker 19.03.5
  • docker-compose 1.24.1
  • NGINX 1.16.0
  • PHP(php-fpm) 7.4.1
  • MySQL 8.0.18
  • (Node.js 12.7.0)

8000 -nginx:80-> php-fpm:9000

Setup

Only first time.

$ cd src
$ git clone CLONE_URL project
$ vi docker/nginx/default.conf
1. 
location / {
    root /var/www/project/public;

location / {
    root /var/www/SOME_PROJECT_NAME/public;

2.
location ~ [^/]\.php(/|$) {
    root /var/www/project/public;

location ~ [^/]\.php(/|$) {
    root /var/www/SOME_PROJECT_NAME/public;
$ docker-compose up --build -d

After that, execute the following.

$ docker-compose start

$ docker-compose stop

License

MIT

About

[WIP]Development environment for Laravel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published