diff --git a/.env.example b/.env.example index 7dc51e1f..c3ed2a91 100644 --- a/.env.example +++ b/.env.example @@ -20,13 +20,15 @@ QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120 +MEMCACHED_HOST=127.0.0.1 + REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp -MAIL_HOST=smtp.mailtrap.io -MAIL_PORT=2525 +MAIL_HOST=mailhog +MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null diff --git a/.gitignore b/.gitignore index 0f7df0fb..0ae59f0b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .env .env.backup .phpunit.result.cache +docker-compose.override.yml Homestead.json Homestead.yaml npm-debug.log diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eb74678..c64b5aff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,46 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v8.4.4...master) +## [Unreleased](https://github.com/laravel/laravel/compare/v8.5.5...master) + + +## [v8.5.5 (2020-12-12)](https://github.com/laravel/laravel/compare/v8.5.4...v8.5.5) + +### Changed +- Revert changes to env file ([3b2ed46](https://github.com/laravel/laravel/commit/3b2ed46e65c603ddc682753f1a9bb5472c4e12a8)) + + +## [v8.5.4 (2020-12-10)](https://github.com/laravel/laravel/compare/v8.5.3...v8.5.4) + +### Changed +- Gitignore `docker-compose.override.yml` ([#5487](https://github.com/laravel/laravel/pull/5487) +- Update ENV vars to docker file ([ddb26fb](https://github.com/laravel/laravel/commit/ddb26fbc504cd64fb1b89511773aa8d03c758c6d)) + + +## [v8.5.3 (2020-12-10)](https://github.com/laravel/laravel/compare/v8.5.2...v8.5.3) + +### Changed +- Disable `TrustHosts` middleware ([b7cde8b](https://github.com/laravel/laravel/commit/b7cde8b495e183f386da63ff7792e0dea9cfcf56)) + + +## [v8.5.2 (2020-12-08)](https://github.com/laravel/laravel/compare/v8.5.1...v8.5.2) + +### Added +- Add Sail ([17668be](https://github.com/laravel/laravel/commit/17668beabe4cb489ad07abb8af0a9da01860601e)) + + +## [v8.5.1 (2020-12-08)](https://github.com/laravel/laravel/compare/v8.5.0...v8.5.1) + +### Changed +- Revert change to `QUEUE_CONNECTION` ([34368a4](https://github.com/laravel/laravel/commit/34368a4fab61839c106efb1eea087cc270639619)) + + +## [v8.5.0 (2020-12-08)](https://github.com/laravel/laravel/compare/v8.4.4...v8.5.0) + +### Added +- Add Sail file ([bcd87e8](https://github.com/laravel/laravel/commit/bcd87e80ac7fa6a5daf0e549059ad7cb0b41ce75)) + +### Changed +- Update env file for Sail ([a895748](https://github.com/laravel/laravel/commit/a895748980b3e055ffcb68b6bc1c2e5fad6ecb08)) ## [v8.4.4 (2020-12-01)](https://github.com/laravel/laravel/compare/v8.4.3...v8.4.4) diff --git a/README.md b/README.md index 2f7ddcc6..e1dcd2e1 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ We would like to extend our thanks to the following sponsors for funding Laravel - **[Many](https://www.many.co.uk)** - **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** - **[DevSquad](https://devsquad.com)** +- **[Curotec](https://www.curotec.com/)** - **[OP.GG](https://op.gg)** ## Contributing diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 21a8754b..30020a50 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -14,7 +14,7 @@ class Kernel extends HttpKernel * @var array */ protected $middleware = [ - \App\Http\Middleware\TrustHosts::class, + // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, \Fruitcake\Cors\HandleCors::class, \App\Http\Middleware\PreventRequestsDuringMaintenance::class, diff --git a/composer.json b/composer.json index 11bb6f07..10ce18f1 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,7 @@ }, "require-dev": { "fakerphp/faker": "^1.9.1", + "laravel/sail": "^0.0.5", "mockery/mockery": "^1.4.2", "nunomaduro/collision": "^5.0", "phpunit/phpunit": "^9.3.3" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..5ba8e628 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,74 @@ +# For more information: https://laravel.com/docs/sail +version: '3' +services: + laravel.test: + build: + context: ./vendor/laravel/sail/runtimes/8.0 + dockerfile: Dockerfile + args: + WWWGROUP: '${WWWGROUP}' + image: sail-8.0/app + ports: + - '${APP_PORT:-80}:80' + environment: + WWWUSER: '${WWWUSER}' + LARAVEL_SAIL: 1 + volumes: + - '.:/var/www/html' + networks: + - sail + depends_on: + - mysql + - redis + # - selenium + # selenium: + # image: 'selenium/standalone-chrome' + # volumes: + # - '/dev/shm:/dev/shm' + # networks: + # - sail + # depends_on: + # - laravel.test + mysql: + image: 'mysql:8.0' + ports: + - '${FORWARD_DB_PORT:-3306}:3306' + environment: + MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' + MYSQL_DATABASE: '${DB_DATABASE}' + MYSQL_USER: '${DB_USERNAME}' + MYSQL_PASSWORD: '${DB_PASSWORD}' + MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' + volumes: + - 'sailmysql:/var/lib/mysql' + networks: + - sail + redis: + image: 'redis:alpine' + ports: + - '${FORWARD_REDIS_PORT:-6379}:6379' + volumes: + - 'sailredis:/data' + networks: + - sail + # memcached: + # image: 'memcached:alpine' + # ports: + # - '11211:11211' + # networks: + # - sail + mailhog: + image: 'mailhog/mailhog:latest' + ports: + - 1025:1025 + - 8025:8025 + networks: + - sail +networks: + sail: + driver: bridge +volumes: + sailmysql: + driver: local + sailredis: + driver: local