-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
1,167 additions
and
6,426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
APP_NAME=DemoStore | ||
APP_ENV=local | ||
APP_KEY=base64:xXSJ4LcR6e/0M6o8eK6RGhkbPT1W9UNmY6PP5UK+q0w= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=mysql | ||
DB_PORT=3306 | ||
DB_DATABASE=demostore | ||
DB_USERNAME=demostore | ||
DB_PASSWORD=password | ||
|
||
ADMIN_FIRSTNAME=admin | ||
ADMIN_LASTNAME=admin | ||
[email protected] | ||
ADMIN_PASSWORD=password | ||
|
||
## Laravel media disk | ||
FILESYSTEM_DISK=public | ||
## Spatie media disk | ||
MEDIA_DISK=public | ||
## Filament system disk | ||
FILAMENT_FILESYSTEM_DISK=public | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=redis | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=redis | ||
SESSION_LIFETIME=120 | ||
|
||
REDIS_HOST=redis | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailhog | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS=null | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
SCOUT_DRIVER=meilisearch | ||
SCOUT_PREFIX='demostore_' | ||
MEILISEARCH_PORT=7700 | ||
MEILISEARCH_HOST=http://meilisearch:${MEILISEARCH_PORT} | ||
MEILISEARCH_KEY=jyjW99LxM28kG4 | ||
MEILISEARCH_UI_PORT=7701 | ||
|
||
STRIPE_KEY= | ||
STRIPE_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,24 @@ DB_DATABASE=laravel | |
DB_USERNAME=laravel | ||
DB_PASSWORD=laravel | ||
|
||
ADMIN_FIRSTNAME=admin | ||
ADMIN_LASTNAME=admin | ||
[email protected] | ||
ADMIN_PASSWORD=password | ||
|
||
## Laravel media disk | ||
FILESYSTEM_DISK=public | ||
## Spatie media disk | ||
MEDIA_DISK=public | ||
## Filament system disk | ||
FILAMENT_FILESYSTEM_DISK=public | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
CACHE_DRIVER=redis | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_HOST=cache | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
@@ -51,4 +60,12 @@ PUSHER_APP_CLUSTER=mt1 | |
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
SCOUT_DRIVER=database_index | ||
SCOUT_DRIVER=meilisearch | ||
SCOUT_PREFIX='demostore_' | ||
MEILISEARCH_PORT=7700 | ||
MEILISEARCH_HOST=http://meilisearch:${MEILISEARCH_PORT} | ||
MEILISEARCH_KEY=jyjW99LxM28kG4 | ||
MEILISEARCH_UI_PORT=7701 | ||
|
||
STRIPE_KEY= | ||
STRIPE_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
name: demostore | ||
recipe: laravel | ||
|
||
config: | ||
webroot: public | ||
php: '8.0' | ||
php: '8.2' | ||
via: nginx | ||
cache: redis | ||
xdebug: false | ||
|
||
services: | ||
database: | ||
portforward: 3306 | ||
|
||
meilisearch: | ||
type: compose | ||
app_mount: false | ||
services: | ||
image: getmeili/meilisearch:latest | ||
command: tini -- /bin/sh -c /bin/meilisearch | ||
ports: | ||
- '7700' | ||
volumes: | ||
- meilisearch:/meili_data | ||
volumes: | ||
meilsearch: | ||
|
||
mailhog: | ||
type: mailhog | ||
portforward: true | ||
hogfrom: | ||
- appserver | ||
|
||
node: | ||
type: node:16 | ||
type: node:20 | ||
|
||
tooling: | ||
npm: | ||
service: node |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
ARG PHP_VERSION=8.2 | ||
ARG COMPOSER_VERSION=2.4 | ||
|
||
### COMPOSER ### | ||
FROM composer:${COMPOSER_VERSION} AS composer | ||
|
||
### PHP-FPM ### | ||
FROM php:${PHP_VERSION}-fpm-alpine AS php-fpm | ||
|
||
WORKDIR /var/www | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/ | ||
COPY --from=ghcr.io/shyim/gnu-libiconv:v3.14 /gnu-libiconv-1.15-r3.apk /gnu-libiconv-1.15-r3.apk | ||
|
||
RUN apk add --no-cache \ | ||
unzip \ | ||
wget \ | ||
sudo \ | ||
bash \ | ||
sudo \ | ||
supervisor \ | ||
npm \ | ||
aws-cli | ||
|
||
RUN apk add --no-cache --allow-untrusted /gnu-libiconv-1.15-r3.apk | ||
RUN rm /gnu-libiconv-1.15-r3.apk | ||
RUN install-php-extensions \ | ||
bcmath \ | ||
gd \ | ||
intl \ | ||
mysqli \ | ||
pdo_mysql \ | ||
curl \ | ||
dom \ | ||
fileinfo \ | ||
filter \ | ||
hash \ | ||
mbstring \ | ||
openssl \ | ||
pcre \ | ||
session \ | ||
xml \ | ||
redis \ | ||
opcache \ | ||
zip \ | ||
exif | ||
|
||
RUN export COMPOSER_PROCESS_TIMEOUT=9000 | ||
|
||
COPY docker/php-fpm/dev/php.ini $PHP_INI_DIR/php.ini | ||
|
||
# SETUP PHP-FPM CONFIG SETTINGS (max_children / max_requests) | ||
RUN echo 'pm.max_children = 15' >> /usr/local/etc/php-fpm.d/zz-docker.conf && \ | ||
echo 'pm.max_requests = 500' >> /usr/local/etc/php-fpm.d/zz-docker.conf | ||
|
||
COPY ./docker/php-fpm/docker-entrypoint.sh /usr/local/bin/docker-entrypoint | ||
RUN chmod +x /usr/local/bin/docker-entrypoint | ||
|
||
ENTRYPOINT ["docker-entrypoint"] | ||
CMD ["php-fpm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,25 @@ This repository is provided as a reference to learn how to use Lunar Laravel E-C | |
# Installation | ||
|
||
For full installation instructions please visit https://docs.lunarphp.io/core/starter-kits.html | ||
|
||
## Installation with Docker | ||
|
||
> Make sure you have Docker installed on your local machine. | ||
### Environment Demo store | ||
|
||
You can execute it via the `docker compose up` command in your favorite terminal. | ||
Please note that the speed of building images and initializing containers depends on your local machine and internet connection - it may take some time. | ||
|
||
```bash | ||
cp .env.docker.example .env | ||
docker-compose up | ||
``` | ||
|
||
The demo store will be available to `http://localhost` in your browser. | ||
|
||
#### Log into Lunar panel | ||
|
||
Once the project is prepared, the Lunar panel will start and available to `http://localhost/lunar`. | ||
|
||
Default admin user is username `[email protected]` and password `password` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.