diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..a070a5e226b3ede7d72afb2de41e308c301ec5eb --- /dev/null +++ b/.env.example @@ -0,0 +1,47 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0a7f074cd4eb4e3621e55b87a9327df2212ffe7e..533e6ef2939203d6e316424d7bd56f12943cce36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,5 +66,7 @@ COPY --chown=root:www-data . /html WORKDIR /html EXPOSE 80 -CMD cron -L /dev/stdout && \ - php-fpm7.4 -F -R +CMD if [ ! -f .env ]; then cp .env.example .env; php artisan key:generate; fi && \ + chown -R root:www-data storage bootstrap/cache && \ + cron -L /dev/stdout && \ + php-fpm7.4 -F -R \ No newline at end of file diff --git a/DockerfileDev b/DockerfileDev index f2c43b0e6156b9f5c77013d30247f30739043123..a4cd206379ca6a03e4f8a402d3b420c3b36dd1d4 100644 --- a/DockerfileDev +++ b/DockerfileDev @@ -58,5 +58,7 @@ RUN sed -i 's/error_log = \/var\/log\/php7.4-fpm.log/error_log = \/dev\/stderr/g WORKDIR /html EXPOSE 80 -CMD cron -L /dev/stdout && \ - php-fpm7.4 -F -R +CMD if [ ! -f .env ]; then cp .env.example .env; php artisan key:generate; fi && \ + chown -R root:www-data storage bootstrap/cache && \ + cron -L /dev/stdout && \ + php-fpm7.4 -F -R \ No newline at end of file diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore old mode 100644 new mode 100755 diff --git a/docker-compose.yaml b/docker-compose.yaml index 797d820b11747f5200ae923dde6035762ab13a95..d8d421f513b9e0fd7c377997c51b4e517f00382a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -28,7 +28,7 @@ services: - "phpfpm" image: searx-proxy:latest working_dir: /html - command: nginx + command: nginx volumes: - .:/html - ./config/nginx.conf:/etc/nginx/nginx.conf diff --git a/storage/app/.gitignore b/storage/app/.gitignore old mode 100644 new mode 100755 diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore old mode 100644 new mode 100755 diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore old mode 100644 new mode 100755 diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore old mode 100644 new mode 100755