Moved to _dev
This commit is contained in:
10
crater/docker-compose/cron.dockerfile
Normal file
10
crater/docker-compose/cron.dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM php:8.0-fpm-alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
php8-bcmath
|
||||
|
||||
RUN docker-php-ext-install pdo pdo_mysql bcmath
|
||||
|
||||
COPY docker-compose/crontab /etc/crontabs/root
|
||||
|
||||
CMD ["crond", "-f"]
|
||||
1
crater/docker-compose/crontab
Normal file
1
crater/docker-compose/crontab
Normal file
@@ -0,0 +1 @@
|
||||
* * * * * cd /var/www && php artisan schedule:run >> /dev/stdout 2>&1
|
||||
22
crater/docker-compose/nginx/nginx.conf
Normal file
22
crater/docker-compose/nginx/nginx.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
client_max_body_size 64M;
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /var/www/public;
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_read_timeout 300;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
}
|
||||
}
|
||||
4
crater/docker-compose/php/uploads.ini
Normal file
4
crater/docker-compose/php/uploads.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
file_uploads = On
|
||||
upload_max_filesize = 64M
|
||||
post_max_size = 64M
|
||||
max_execution_time = 300
|
||||
6
crater/docker-compose/setup.sh
Executable file
6
crater/docker-compose/setup.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker-compose exec app composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
||||
docker-compose exec app php artisan storage:link || true
|
||||
docker-compose exec app php artisan key:generate
|
||||
Reference in New Issue
Block a user