Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
4256983241 |
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.10
|
||||||
COPY ./scripts/* /home/
|
COPY ./scripts/* /home/
|
||||||
ENV PHP_IDE_CONFIG='serverName=php'
|
ENV PHP_IDE_CONFIG='serverName=php'
|
||||||
RUN sh /home/install_ubuntu.sh
|
RUN sh /home/install_ubuntu.sh
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sed -i -r 's/([a-z]{2}.)?archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
|
||||||
|
sed -i -r 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
|
||||||
apt update
|
apt update
|
||||||
DEBIAN_FRONTEND=noninteractive apt -y install tzdata
|
DEBIAN_FRONTEND=noninteractive apt -y install tzdata
|
||||||
DEBIAN_FRONTEND=noninteractive apt -y install php-cli
|
apt install php-cli \
|
||||||
DEBIAN_FRONTEND=noninteractive apt -y install php-redis \
|
php-redis \
|
||||||
php-luasandbox \
|
php-luasandbox \
|
||||||
php-fpm \
|
php-fpm \
|
||||||
php-common \
|
php-common \
|
||||||
|
|
@ -29,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
|
||||||
|
|
@ -36,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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue