From 8dfe50e7a3150aed53c7390f4b83b889d1f82e62 Mon Sep 17 00:00:00 2001 From: rinsvent Date: Sun, 17 May 2026 21:29:05 +0700 Subject: [PATCH] feat: fix env and start --- .env.example | 18 +++++++++--------- docker-compose.yml | 15 ++++++++------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.env.example b/.env.example index c0660ea..3197a0e 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 16a5ba8..7a09fda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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