This commit is contained in:
Your Name 2025-08-07 19:46:35 +05:00
parent bf121a1ce7
commit 4256983241
4 changed files with 12 additions and 3 deletions

View File

@ -6,7 +6,7 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
command: sh /home/scripts/start.sh command: sh /home/scripts/start.sh
volumes: volumes:
- ../nginx/nginx_config_dev.conf:/etc/nginx/conf.d/default.conf - ../nginx/nginx_config_dev.conf:/etc/nginx/http.d/default.conf
- ../../app:/var/www/html - ../../app:/var/www/html
- ../scripts/nginx:/home/scripts - ../scripts/nginx:/home/scripts
- ../../letsencrypt:/etc/letsencrypt - ../../letsencrypt:/etc/letsencrypt

View File

@ -35,10 +35,12 @@ server {
gzip_types text/plain text/css application/javascript; gzip_types text/plain text/css application/javascript;
client_max_body_size 1000M; client_max_body_size 1000M;
error_log /var/log/nginx/debug.log debug;
set $host_path "/var/www"; set $host_path "/var/www";
server_name _; server_name _;
root $host_path/html/public; root $host_path/html/standard_encode;
set $bootstrap "index.php"; set $bootstrap "index.php";
charset utf-8; charset utf-8;

View File

@ -1,3 +1,3 @@
FROM alpine:3.13 FROM alpine:3.19
COPY ./scripts/* /home/ COPY ./scripts/* /home/
RUN sh /home/install.sh RUN sh /home/install.sh

View File

@ -31,6 +31,9 @@ composer -y
apt install supervisor -y apt install supervisor -y
sed -i 's@listen = /run/php/php8.3-fpm.sock@listen = 0.0.0.0:9000@g' /etc/php/8.3/fpm/pool.d/www.conf sed -i 's@listen = /run/php/php8.3-fpm.sock@listen = 0.0.0.0:9000@g' /etc/php/8.3/fpm/pool.d/www.conf
sed -i 's@short_open_tag@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini
sed -i 's@short_open_tag = Off@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini
sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/fpm/php.ini
sed -i 's@post_max_size = 8M@post_max_size = 85M@g' /etc/php/8.3/fpm/php.ini sed -i 's@post_max_size = 8M@post_max_size = 85M@g' /etc/php/8.3/fpm/php.ini
sed -i 's@upload_max_filesize = 2M@upload_max_filesize = 10M@g' /etc/php/8.3/fpm/php.ini sed -i 's@upload_max_filesize = 2M@upload_max_filesize = 10M@g' /etc/php/8.3/fpm/php.ini
@ -38,6 +41,10 @@ sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/fpm/php.ini
sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/cli/php.ini sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/cli/php.ini
sed -i 's@; short_open_tag@short_open_tag = On@g' /etc/php/8.3/cli/php.ini
sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/cli/php.ini
XDEBUG_CONF_CLI="/etc/php/8.3/cli/conf.d/20-xdebug.ini" XDEBUG_CONF_CLI="/etc/php/8.3/cli/conf.d/20-xdebug.ini"
# echo 'zend_extension=xdebug.so' >> $XDEBUG_CONF # echo 'zend_extension=xdebug.so' >> $XDEBUG_CONF
echo 'xdebug.start_with_request=yes' >> $XDEBUG_CONF_CLI echo 'xdebug.start_with_request=yes' >> $XDEBUG_CONF_CLI