feat: fix env and start

This commit is contained in:
rinsvent 2026-05-17 21:29:05 +07:00
parent a0d59a87d0
commit 8dfe50e7a3
2 changed files with 17 additions and 16 deletions

View File

@ -1,6 +1,6 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_KEY=base64:MR10CFjbrEDkYi2FLwW0tNNHGHleWthQlxD5LLKdFnQ=
APP_DEBUG=true
APP_URL=http://localhost
@ -20,12 +20,12 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=slots
DB_USERNAME=slots
DB_PASSWORD=slots
SESSION_DRIVER=database
SESSION_LIFETIME=120
@ -37,13 +37,13 @@ BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
CACHE_STORE=redis
# CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

View File

@ -27,13 +27,14 @@ services:
condition: service_healthy
redis:
condition: service_started
# command: >
# sh -c "
# composer install --no-interaction &&
# php artisan migrate --force &&
# php artisan db:seed --class=SlotSeeder --force &&
# php artisan serve --host=0.0.0.0 --port=8000
# "
command: >
sh -c "
composer install --no-interaction &&
cp .env.example .env
php artisan migrate --force &&
php artisan db:seed --class=SlotSeeder --force &&
php artisan serve --host=0.0.0.0 --port=8000
"
mysql:
image: mysql:8.4