rasodu / services

Start DLEMP server with prebuilt docker images. This is be much faster than building images from dockerfiles.
MIT License
2 stars 0 forks source link

Build Status

DLEMPFast

Start DLEMP server with prebuilt docker images. This is much faster than building images from dockerfiles.

What are goals of this project?

  1. Provide disposable PHP development environment.
    • Provide isolated PHP development environment for each of your projects.
    • Allow developers to manage and version control PHP environment on per project basis.(Developers can easily install additional PHP extensions)
    • Provide quick way to run PHP project in single server production setup and clear path to scale app in production.

Which version of PHP do you support?

We support PHP 5.6 and 7.0

How do I install this?

How do I start development server?

How do I enter cmd container?

How do I customize nginx settings?

How do I customize PHP settings?

How do I install additional PHP extensions?

How do I use FakeS3 during development?

How do I use Xdebug?

How do I generate phpunit code coverage?

Does this project support Laravel Broadcasting Events?

Does this project support Laravel Queue?

How do I start production server?

Which optimization should you perform on your production Laravel website?

composer install --no-dev
composer dump-autoload --optimize
in .env file 'APP_ENV=production' and 'APP_DEBUG=false'
php artisan optimize --force
php artisan route:cache
php artisan config:cache

How do I get SSL certificate for production server?

docker-machine ssh <production-machine-name>
docker run --rm -it -v <project-name>_etc-letsencrypt:/etc/letsencrypt -v <project-name>_acme-challenge:/DLEMP/letsencrypt/public/.well-known/acme-challenge <project-name>_letsencrypt /bin/bash
/DLEMP/letsencrypt/bin/letsencrypt-auto --version
/DLEMP/letsencrypt/bin/letsencrypt-auto certonly --agree-tos
ln -sf /etc/letsencrypt/live/<domain>/privkey.pem /etc/letsencrypt/privkey.pem
ln -sf /etc/letsencrypt/live/<domain>/fullchain.pem /etc/letsencrypt/fullchain.pem
exit
exit
docker-compose -f docker-compose.yml -f docker-compose.prod.yml restart nginxhttps

How do I scale my app in production?

How do I run my app in AWS ECS cluster?