darkjinnee / larapack-9x

Quick start create package laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Larapack-9x

Quick start create package laravel

Installation

# Clone git repository
$ git clone https://github.com/darkjinnee/larapack-9x.git

# Go project directory
$ cd ./larapack-9x

# Copy environment variables
$ cp .env.example .env

# Build images and run containers
$ docker-compose up --build -d

Add lines hosts file

...
127.0.0.1 larapack-9x.loc www.larapack-9x.loc

Usage

# Commands: start, restart, stop
$ docker-compose <command>

# Enter container shell
$ docker-compose exec <service> bash

# Show logs containers
$ docker-compose logs -f

# Stop and remove containers, networks, images, and volumes
$ docker-compose down --rmi=all

Migrate and Seeding

# Enter container shell
$ docker-compose exec php bash

# Migrate and seeding
$ php artisan migrate --seed

Dev user for PHP service

$ su dev

Package management

To create packages see the documentation for laravel-packager

Xdebug

To activate Xdebug edit file docker/services/php/conf.d/xdebug.ini, remote host must be your local IP address


Multiple domains with nginx-proxy

About

Quick start create package laravel

License:MIT License


Languages

Language:PHP 80.2%Language:Blade 16.9%Language:Dockerfile 1.2%Language:Makefile 0.8%Language:Shell 0.6%Language:JavaScript 0.3%