This commit is contained in:
hackerESQ
2025-01-26 11:20:52 -06:00
parent e8ec94bfa8
commit 05174e93ad
6 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ return [
|
*/
'name' => env('APP_NAME', 'Laravel'),
'name' => env('APP_NAME', 'Investbrain'),
/*
|--------------------------------------------------------------------------
+1 -1
View File
@@ -143,7 +143,7 @@ return [
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'client' => env('REDIS_CLIENT', 'predis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
+1 -1
View File
@@ -110,7 +110,7 @@ return [
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
'name' => env('MAIL_FROM_NAME', 'Investbrain'),
],
];
+2 -1
View File
@@ -9,7 +9,8 @@ services:
tty: true
ports:
- "${APP_PORT:-8000}:80"
env_file: .env
volumes:
- ./storage:/var/www/app/storage:delegated
depends_on:
- mysql
- redis
+16
View File
@@ -1,6 +1,22 @@
FROM php:8.3-fpm
ENV DEBIAN_FRONTEND=noninteractive
ENV APP_URL="http://localhost:8000"
ENV ASSET_URL="http://localhost:8000"
ENV APP_DEBUG=true
ENV SELF_HOSTED=true
ENV DB_CONNECTION=mysql
ENV DB_HOST=investbrain-mysql
ENV DB_PORT=3306
ENV DB_DATABASE=investbrain
ENV DB_USERNAME=investbrain
ENV DB_PASSWORD=investbrain
ENV SESSION_DRIVER=redis
ENV QUEUE_CONNECTION=redis
ENV CACHE_STORE=redis
ENV REDIS_HOST=investbrain-redis
ENV REDIS_PATH=/tmp/database_server.sock
ENV VITE_APP_NAME=Investbrain
# Set the working directory
COPY . /var/www/app
+5 -6
View File
@@ -7,10 +7,10 @@ artisan_as_www_user() {
}
echo -e "\n====================== Validating environment... ====================== "
if [[ -z "$APP_KEY" ]]; then
echo " > Oops! The required APP_KEY configuration is missing in your .env file! "
echo " > Copy and paste the below key into your .env file and restart the container... "
echo " > Oops! The required APP_KEY configuration is missing in your environment! "
echo " > Generating a key (see below) but this will NOT be persisted between container restarts. "
echo " > You should set this APP_KEY in your .env file! "
draw_box() {
local text="$1"
@@ -22,9 +22,8 @@ if [[ -z "$APP_KEY" ]]; then
echo "$border"
}
draw_box "base64:$(openssl rand -base64 32)"
exit 1;
$APP_KEY="base64:$(openssl rand -base64 32)"
draw_box $APP_KEY
fi
if [ ! -L "public/storage" ]; then