IsaevDimka / universal-laravel-docker-skeleton

Universal laravel 🐳 docker skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Universal laravel docker skeleton

Changelog badge Version 1.2.2 Badge MIT License Badge Docker build CI Laravel Node.js CI

Introduction

Requirements

  • Host OS β€” Win/Linux/UNIX/Mac
  • Docker

🐳 Docker containers

  • php β€” php:7.4.15-fpm | Laravel 8.x.x
  • laravel-echo-server β€” node:15-alpine + laravel-echo-server
  • nginx β€” nginx:1.19.6-alpine
  • postgres β€” postgres:13.2-alpine
  • memcached β€” memcached:1.6.9-alpine
  • redis β€” redis:6.0.10-alpine
  • mongodb β€” mongo:4.4.3
  • adminer β€” adminer:latest
  • rabbitmq β€” rabbitmq:3.8.11-management-alpine
  • roadrunner β€” php:8.0.2-cli & spiral/roadrunner v1.9.2
  • clickhouse-server β€” yandex/clickhouse-server 20.8.12.2

Features

  • Laravel 8
  • Vue + VueRouter + Vuex + VueI18n + ESlint
  • Pages with dynamic import and custom layouts
  • Login, register, email verification and password reset
  • Authentication with JWT
  • Socialite integration support drivers: github, google, facebook, telegram, vkontakte, twitter, gitlab, zalo, bitbucket, yandex
  • Element UI for backend
  • Universal api facade
  • Helper DebugService
  • Telegram webhook support
  • Helper OpcacheService

Installation

  • git clone <this repo>
  • make build
  • make install

Quick setup for local develop

  • set ./docker-containers/app/opcache.ini values *enabled* to 0 and save file.

  • php -d memory_limit=-1 /usr/local/bin/composer install

Commands

Maintenance mode

php artisan up
php artisan down

Clear OPcache:

php artisan opcache:clear

Show OPcache config:

php artisan opcache:config

Show OPcache status:

php artisan opcache:status

Pre-compile your application code:

php artisan opcache:compile {--force}

Note: opcache.dups_fix must be enabled, or use the --force flag. If you run into "Cannot redeclare class" errors, enable opcache.dups_fix or add the class path to the exclude list.

Easily increment your version numbers, using Artisan commands

php artisan version:major
php artisan version:minor
php artisan version:patch
php artisan version:commit
php artisan version:timestamp

Perf

phpstan analyse: ./linter.sh ./phpstan.sh

Dependencies

Contribute

Please do contribute! Issues and pull requests are welcome.

Thank you for your help to improving software one changelog at a time!

License

MIT License (MIT). Please see LICENSE for more information. Maintained by IsaevDimka.

About

Universal laravel 🐳 docker skeleton

License:MIT License


Languages

Language:PHP 66.5%Language:Vue 30.0%Language:Blade 1.5%Language:Dockerfile 0.8%Language:Shell 0.6%Language:Makefile 0.5%Language:JavaScript 0.0%