Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A laravel 10 boilerplate with jetstream and livewire (but without bloated docker images)

NotificationsYou must be signed in to change notification settings

ndmgrphc/laravel-10-jetstream-livewire

Repository files navigation

The goal of this project is to serve as a boilerplate for Laravel 10utilizing light-weight alpine linux images for nginx and php 8.2 (fpm)while keeping the front-end stuff as containerized as possible.

While this isn't to my taste it might be a good place to start ifyou're js/ts-interested but not committed to learning Vue directly.

Stack:

  • app @ php:8.2-fpm-alpine
  • nginx @ nginx:alpine
  • mysql @ mysql
  • redis @ redis:alpine
  • worker-local @ php:8.2-alpine3.16

TODO

  • figure out where else VITE_PORT is used.https://news.ycombinator.com/item?id=32085349
  • hook up worker-local so you have a queue to play with
  • create an example job/worker you might co-locate on same hardware
  • maybe add some ci/cd and even k8s stuff as an example to scale out workers/nginx/edges

Notes

  • docker/app docker/nginx will rely on supervisor to maintain their processes, yawn
  • Please see .env "#PORT FORWARDS" before starting in docker-compose

Installation

The default docker-compose config here exposes ports if you want them. See .env's "PORT FORWARDS"

cp ./env.example ./.envdocker-compose up --build -d app nginx mysqldocker-composeexec app php artisan migrate# grab a shell inside docker/appdocker-composeexec -u root app /bin/sh# then, inside shellnpm install# vitenpm run dev -- --host

You can now accesshttp://localhost:8022 (or whatever your FORWARD_NGINX_PORT is).

Please keep ./composer.lock in docker/app container context, for example:

docker-composeexec -u root app /bin/sh# then...# COMPOSER_MEMORY_LIMIT=-1 app composer install# COMPOSER_MEMORY_LIMIT=-1 app composer require awesome/package_etc# ymmv w/ COMPOSER_MEMORY_LIMIT maybe try without

About

A laravel 10 boilerplate with jetstream and livewire (but without bloated docker images)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp