Merge pull request #1346 from emrullahardc/fatihalp

Fatihalp
This commit is contained in:
Fatih Alp 2023-06-23 10:35:24 +03:00 committed by GitHub
commit 84dce14077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -35,8 +35,6 @@ services:
depends_on: depends_on:
database: database:
condition: service_healthy condition: service_healthy
env_file: .env
# Database Server # Database Server
database: database:

View File

@ -19,10 +19,8 @@ fi
role=${CONTAINER_ROLE:-app} role=${CONTAINER_ROLE:-app}
if [ "$role" = "app" ]; then if [ "$role" = "app" ]; then
if [ "$INSTALLED" = "false" ]; then
echo ".env installed is false starting installing" echo ".env installed is false starting installing"
php artisan install --ready php artisan install --ready
fi
exec docker-php-entrypoint "$@" exec docker-php-entrypoint "$@"
elif [ "$role" = "queue" ]; then elif [ "$role" = "queue" ]; then
echo "Running the queue ... " echo "Running the queue ... "

View File

@ -38,7 +38,7 @@ if [[ $(which docker) && $(docker --version) ]]; then
fi fi
fi fi
cp -u .env-sail .env cp .env-sail .env
docker compose down -v docker compose down -v