This commit is contained in:
parent
bf121a1ce7
commit
4256983241
|
|
@ -6,7 +6,7 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
command: sh /home/scripts/start.sh
|
||||
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
|
||||
- ../scripts/nginx:/home/scripts
|
||||
- ../../letsencrypt:/etc/letsencrypt
|
||||
|
|
|
|||
|
|
@ -35,10 +35,12 @@ server {
|
|||
gzip_types text/plain text/css application/javascript;
|
||||
client_max_body_size 1000M;
|
||||
|
||||
error_log /var/log/nginx/debug.log debug;
|
||||
|
||||
set $host_path "/var/www";
|
||||
|
||||
server_name _;
|
||||
root $host_path/html/public;
|
||||
root $host_path/html/standard_encode;
|
||||
set $bootstrap "index.php";
|
||||
|
||||
charset utf-8;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
FROM alpine:3.13
|
||||
FROM alpine:3.19
|
||||
COPY ./scripts/* /home/
|
||||
RUN sh /home/install.sh
|
||||
|
|
@ -31,6 +31,9 @@ composer -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@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@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@; 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"
|
||||
# echo 'zend_extension=xdebug.so' >> $XDEBUG_CONF
|
||||
echo 'xdebug.start_with_request=yes' >> $XDEBUG_CONF_CLI
|
||||
|
|
|
|||
Loading…
Reference in New Issue