Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker definition for Laravel Development. This is an attempt to make development using docker simple by having most of the needed stuff inside the php container.

NotificationsYou must be signed in to change notification settings

rascoop/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Docker definition for Laravel Development.This is an attempt to make development using docker simple by having most of the needed stuff inside the php container.This image is now based on alpine linux and has extensions for SQLite, MySQL, MariaDB and PostgresqlXdebug is also installed##BuildThe simplest way to use this Docker definition is to build the image:docker build .

You can also build the image and include a tag to make it easier to find like so:docker build -t <dockhubname>/php-fpm-laravel:latest .

##UseThe best way to use this image is with other images.

As it does not have a webserver nor a database server, use it as part of a group.Check the docker-compose.yml in this repository. The necessary mysql drivers are installed. But if you are planning in using anything else please feel free to fork and change.

When running composer or php artisan you need to do it from the php container. You can go to the container by:docker exec -ti appnamephp /bin/bashOnce inside the container, you can run composer byphp /usr/local/bin/composerYou can also run this without being in the container's terminal by running composer or artisan like so:docker exec appnamephp php /usr/local/bin/composer ordocker exec appnamephp php artisan

One thing that you need to be aware is that whenever you run any of those commands, you need to runsudo chmod -R yourusername:yourusername ./src/*.The reason for this is that when inside the container the commands are run as root and therefore owned by root.

Hope this helps you setup a development environment faster.

###xdebugTo enable xdebug please mount a volume that points to/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

About

Docker definition for Laravel Development. This is an attempt to make development using docker simple by having most of the needed stuff inside the php container.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp