wip
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user