Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 970 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 970 Bytes

distroless-php Laravel Example

This is an example of a Laravel application running on distroless-php.

Usage

$ git clone --recursive "https://github.com/distroless-php/skeleton-laravel.git" "skeleton-laravel"
$ cd "skeleton-laravel"
$ docker compose build --pull
$ docker compose run --rm cli -c 'cp .env.example .env && composer install && php artisan key:generate && php artisan migrate --force --seed'
$ docker compose up -d

and open http://localhost:8931 🥬 in your browser.

if you need check the connection to the services, open http://localhost:8931/test-connections in your browser.

CLI

$ docker compose run --rm cli
$ php artisan app:test-connections
Testing database connections...
- database connection mysql is OK
- database connection mariadb is OK
- database connection pgsql is OK
- database connection sqlite is OK
Testing redis connections...
- redis connection default is OK
- redis connection cache is OK