restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

46
docker/nginx/nginx.conf Executable file
View File

@@ -0,0 +1,46 @@
server {
listen 80 default;
client_max_body_size 1032M;
error_log /quyoshli/storage/logs/nginx.error.log warn;
access_log /quyoshli/storage/logs/nginx.access.log;
root /quyoshli/public;
index index.php;
# try to serve file directly, fallback to start.php
location / {
try_files $uri /$uri /index.php$is_args$args;
}
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass quyoshli:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/quyoshli/storage/logs/nginx.error.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
fastcgi_send_timeout 12000;
fastcgi_read_timeout 12000;
}
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
# browser cache control
location ~* \.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$ {
expires 1d;
access_log off;
add_header Pragma public;
add_header Cache-Control "public, max-age=86400";
}
}

55
docker/php/Dockerfile Executable file
View File

@@ -0,0 +1,55 @@
FROM phpdockerio/php:8.2-fpm
WORKDIR "/quyoshli"
# Install Node.js and npm
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
# Install PHP development packages and extensions
RUN apt-get install -y \
libzip-dev \
libpq-dev \
libonig-dev \
libgd-dev \
libbz2-dev \
libxml2-dev \
zlib1g-dev \
libssl-dev \
libcurl4-openssl-dev \
libjpeg-dev \
libpng-dev \
libwebp-dev \
libfreetype6-dev \
php-dev
RUN docker-php-ext-configure pdo_mysql && \
docker-php-ext-configure bcmath && \
docker-php-ext-install pdo_mysql pdo_pgsql zip opcache exif gd intl sockets bcmath mysqli
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install npm packages globally
RUN npm install -g npm
# Use a base image with Node.js
FROM node:16-alpine
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json to the container
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 3000
# Run the build command
CMD ["npm", "run", "build"]

View File

@@ -0,0 +1,3 @@
upload_max_filesize = 100M
post_max_size = 108M