Skip to content

A docker multicontainer with nginx, postgres, redis and an example laravel project

License

Notifications You must be signed in to change notification settings

s-shiryaev/docker-php8-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Laravel (Nginx, Postgres, Redis, PHP-FPM)

A docker multicontainer with nginx, postgres, redis and an example laravel project.

Build Status

Installation

  1. Build/run containers

    make build
    make run
    
  2. Composer install

    make install
    
  3. Don't forget to generate APP_KEY

    make app-key
    

    Or if you want to do it manually:

    make exec
    php artisan key:generate
    

How to Use

Enter Php-fpm container

make exec

Run whatever you want (E.g. composer require ).

Permissions

If you have problems with permissions on files, try to run command:

make uid

Perhaps your user has a UID other than 1000

List of all make commands

make help

Xdebug

Feel free to change xdebug config in xdebug.ini (For example xdebug.idekey if you are not using PHPStorm)

About

A docker multicontainer with nginx, postgres, redis and an example laravel project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published