jguyomard / docker-laravel Goto Github PK
View Code? Open in Web Editor NEW:whale: Docker Images for Laravel development
License: MIT License
:whale: Docker Images for Laravel development
License: MIT License
I've got to upgrade my images to PHP 7.3 at work. If you're interested, I can make a PR here to add my changes? If not, I'm happy to live in my own fork for now.
Thanks!
I use this image as a base image for many projects, but it doesn't include PHPUnit or XDebug.
I don't think the core image should, but what do you think about adding another folder for a development version of the image? Right now I'm just extending this image like this:
FROM jguyomard/laravel-php:7.2
RUN curl https://phar.phpunit.de/phpunit-7.0.phar -L -o phpunit.phar && \
chmod +x phpunit.phar && mv phpunit.phar /usr/local/bin/phpunit && \
apk add --no-cache $PHPIZE_DEPS && \
pecl install xdebug-2.6.1 && \
docker-php-ext-enable xdebug
CMD phpunit
Just a thought. I don't mind maintaining my own image, just figured others might want PHPUnit and XDebug as well.
Please provide a way to support Laravel Task Scheduling (cron)
See: https://laravel.com/docs/5.6/scheduling
We need a way to add a cron to the docker container.
Within the php Dockerfile the composer installation is called and then later mounted to $HOME/.composer in the docker-compose.yml. This is not a windows path and therefore, the container won't start up... I'm fairly new to docker, do you have any solutions? Thanks in advance!
The dockerfile for nginx is not needed.
Here is a full example how to use nginx without an own "Dockerfile for nginx":
version: '3'
services:
# Application
app:
build:
context: .
dockerfile: ./.docker/app/app.dockerfile
volumes:
- codevolume:/var/www
# Web server
web:
image: nginx
volumes:
- ./.docker/web/vhost.conf:/etc/nginx/conf.d/default.conf
- codevolume:/var/www
depends_on:
- app
ports:
- 8080:80
- 8443:443
volumes:
codevolume:
(This is just an example.)
Hi,
I'm trying to use an laravel app, but it uses the gd extension.
Is there any way to install it?
Regards.
Hi,
I've got an error (413 Request Entity Too Large) when i try to upload a file from my application (3mo).
I think you can fix it with this configuration :
server {
....
client_max_body_size 20M;
....
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.