simplified deployment with docker (#639)

* updated Dockerfile and docker-compose.yml, replaced cron with ofelia and setup.sh with automatically executed startup.sh

* fixed permissions by setting them in setup-script
This commit is contained in:
LU-386
2022-03-16 13:59:21 +01:00
committed by GitHub
parent 18507ddb6f
commit e03320d27b
6 changed files with 46 additions and 54 deletions

16
docker-compose/startup.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
chmod 775 /var/www/ -R
chown 1000:33 /var/www -R
if [ ! -f ".env" ]; then
cp .env.example .env
echo "created .env from .env.example"
fi
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan storage:link || true
php artisan key:generate
php-fpm