All Projects → supermavster → docker-laravel-8

supermavster / docker-laravel-8

Licence: other
A simple Docker - Laravel 8 - MySQL - Redis - PHPAdmin - NGINX - PHP 7.4 - Composer - Artisan - XDebug

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-laravel-8

Laravel Kit
A desktop Laravel admin panel app
Stars: ✭ 440 (+238.46%)
Mutual labels:  composer, artisan
Pdt
PHP Development Tools project (PDT)
Stars: ✭ 135 (+3.85%)
Mutual labels:  composer, xdebug
php8-xdebug
PHP 8.0 for development and production usage. With nginx, brotli, xdebug, JIT and more...
Stars: ✭ 17 (-86.92%)
Mutual labels:  composer, xdebug
wp-skeleton
Setup a new WordPress installation via Composer
Stars: ✭ 36 (-72.31%)
Mutual labels:  composer
autoload
Aplus Framework Autoload Library
Stars: ✭ 18 (-86.15%)
Mutual labels:  composer
wulaphp
一个有点复杂的PHP框架!
Stars: ✭ 26 (-80%)
Mutual labels:  artisan
laravel-mitnick
🔐 laravel-security helps you secure your Laravel apps by setting various HTTP headers.
Stars: ✭ 76 (-41.54%)
Mutual labels:  composer
lean-theme
No description or website provided.
Stars: ✭ 38 (-70.77%)
Mutual labels:  composer
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (-83.08%)
Mutual labels:  composer
phuzz
Find exploitable PHP files by parameter fuzzing and function call tracing
Stars: ✭ 53 (-59.23%)
Mutual labels:  xdebug
tdee-calculator
TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.
Stars: ✭ 16 (-87.69%)
Mutual labels:  composer
jadibot
Telegram Bot for jadi.net
Stars: ✭ 59 (-54.62%)
Mutual labels:  composer
package-command
Lists, installs, and removes WP-CLI packages.
Stars: ✭ 16 (-87.69%)
Mutual labels:  composer
drupal8-composer-template
Project template for Drupal 8 projects with composer | Quick installation via "composer create-project woprrr/drupal8-composer-template:8.3.0"
Stars: ✭ 27 (-79.23%)
Mutual labels:  composer
killposer
List and remove composer-created vendor directories with a cli tool
Stars: ✭ 29 (-77.69%)
Mutual labels:  composer
composer-cost
Displays cost/size of each composer package installed.
Stars: ✭ 31 (-76.15%)
Mutual labels:  composer
comphar
Pack all composer dependencies into a single phar file.
Stars: ✭ 67 (-48.46%)
Mutual labels:  composer
ACCESS-NYC
Find help in NYC with food, money, housing, work, and more on ACCESS NYC. Maintained by @NYCOpportunity
Stars: ✭ 27 (-79.23%)
Mutual labels:  composer
internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (-48.46%)
Mutual labels:  composer
laravel-api-example
💻 Build an API with Laravel 5
Stars: ✭ 47 (-63.85%)
Mutual labels:  artisan

Docker - Laravel

Docker

Image

A pretty simplified Docker Compose workflow that sets up a LEMP (Linux, NGINX, MySQL, PHP) network of containers for local Laravel development.

Ports

Ports used in the project:

Software Port
nginx 8080
phpmyadmin 8081
mysql 3306
php 9000
xdebug 9001
redis 6379

Use

To get started, make sure you have Docker installed on your system and Docker Compose, and then clone this repository.

  1. Clone this project:

    git clone https://github.com/supermavster/docker-laravel-8.git
  2. Inside the folder docker-laravel-8 and Generate your own .env to docker compose with the next command:

    cp .env.example .env
  3. You need Create or Put your laravel project in the folder source; to create follow the next instructions Here.

  4. Build the project whit the next commands:

    docker-compose up --build

Remember

The configuration of the database must be the same on both sides .

# .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=db_user
DB_PASSWORD=db_password
DB_ROOT_PASSWORD=secret
# source/.env
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=db_user
DB_PASSWORD=db_password

The only change is the DB_HOST in the source/.env where is called to the container of mysql:

# source/.env
DB_HOST=mysql

Special Cases

To Down and remove the volumes we use the next command:

docker-compose down -v

Update Composer:

docker-compose run --rm composer update

Run compiler (Webpack.mix.js) or Show the view compiler in node:

docker-compose run --rm npm run dev

Run all migrations:

docker-compose run --rm artisan migrate
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].