Skip to content

tamer73/Laravel-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Laravel-Docker

Create Docker-Based Laravel Environment

Just a quick playground based on Bitnami images

Sources: https://github.com/bitnami/containers/tree/main/bitnami/laravel https://github.com/bitnami/containers/tree/main/bitnami/phpmyadmin

Run docker as user:

sudo usermod -aG docker $USER

Create Project Folder:

mkdir MyProject && cd MyProject create or copy the docker-compose.yml here

install:

sudo docker-compose up

(leave this shell open)

Enable and start Docker:

sudo systemctl start docker.service

sudo systemctl enable docker.service

Access Laravel Container:

sudo docker-compose exec myapp bash
Url: http://0.0.0.0:8000

Access phpMyAdmin http://127.0.0.1 and delete all tables from bitnami_myapp

Install Jetstream:

composer require laravel/jetstream

php artisan jetstream:install livewire --teams

npm install

npm run build

php artisan migrate

Source: https://jetstream.laravel.com/installation.html

things to do next: permissionhttps://laravel-news.com/jetstream-spatie-permission marker at: Full CRUD: Buttons and Forms

About

Create Docker-Based Laravel Environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published