wip
This commit is contained in:
+1
-2
@@ -33,9 +33,8 @@ services:
|
||||
MYSQL_USER: ${DB_USERNAME:-investbrain}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD:-investbrain}
|
||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-investbrain}
|
||||
command: --cte-max-recursion-depth=1000
|
||||
command: bash -c "echo -e '[mysqld]\ncte_max_recursion_depth = 25000' > /etc/mysql/conf.d/my.cnf && docker-entrypoint.sh mysqld"
|
||||
volumes:
|
||||
# - ./docker/mysql.conf:/etc/mysql/conf.d/my.cnf
|
||||
- investbrain-mysql:/var/lib/mysql
|
||||
networks:
|
||||
- investbrain-network
|
||||
|
||||
+12
-2
@@ -18,9 +18,19 @@ run_as_www_user() {
|
||||
}
|
||||
|
||||
if ( ! grep -q "^APP_KEY=" ".env" || grep -q "^APP_KEY=$" ".env"); then
|
||||
echo " > Ah, APP_KEY is missing in .env file. Generating a new key!"
|
||||
echo " > The required APP_KEY configuration is missing in your .env file. Copy and paste this key into your .env file. Then restart the container!"
|
||||
|
||||
run_as_www_user "key:generate --force"
|
||||
draw_box() {
|
||||
local text="$1"
|
||||
local length=${#text}
|
||||
local border=$(printf '%*s' "$((length + 4))" | tr ' ' '*')
|
||||
|
||||
echo "*$border*"
|
||||
echo "* $text *"
|
||||
echo "*$border*"
|
||||
}
|
||||
|
||||
draw_box "base64:$(openssl rand -base64 32)"
|
||||
fi
|
||||
|
||||
if [ ! -L "public/storage" ]; then
|
||||
|
||||
Reference in New Issue
Block a user