Skip to content

distroless-php/skeleton-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

example skeleton project for Laravel PHP Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published